A bounded scanner recognizes namespace, class/struct, enum and function
declarations at line starts from document text alone, skipping
preprocessor lines, comments and control statements. documentSymbol
merges it with observer-fed index records, so the generic path has a
real outline with no compiler-specific artifact. Registered feature
tests cover recognition, call exclusion, comments, ranges and bounds;
the generic stdio session returned main as a function symbol.