Expand description
Document-level analysis: single entry point for parsing, analysis, definition map, and doc maps.
Use DocumentAnalysis::new to run parsing and analysis (with optional include tree and
signature roots) and get diagnostics, type map, scope store, definition map, doc maps, and
class hierarchy in one place.
Structs§
- Document
Analysis - Result of document-level analysis: source, AST, diagnostics, scope, types, definition map, doc maps, class hierarchy.
- Document
Analysis Options - Options for building a
DocumentAnalysis.
Enums§
- Root
Symbol Kind - Kind of root-level symbol for definition map (matches scope seeding order).
Functions§
- build_
class_ super - Build map
class_name->superclass_namefrom the AST (for visibility: subclass can see protected). - build_
definition_ map - Build (name, kind) -> (path, start, end) for root-level symbols (includes first, then main).
- decl_
span_ for_ name_ span - Find the declaration node span (for
doc_maplookup) that contains the given name span.