Skip to main content

Crate leekscript_document

Crate leekscript_document 

Source
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§

DocumentAnalysis
Result of document-level analysis: source, AST, diagnostics, scope, types, definition map, doc maps, class hierarchy.
DocumentAnalysisOptions
Options for building a DocumentAnalysis.

Enums§

RootSymbolKind
Kind of root-level symbol for definition map (matches scope seeding order).

Functions§

build_class_super
Build map class_name -> superclass_name from 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_map lookup) that contains the given name span.