Expand description
Semantic analysis pass over the parsed AST.
The parser produces a syntactic AST and catches structural errors. This module walks the AST to find semantic issues: undefined references, unused bindings, state-machine gaps, and migration hints.
Functionsยง
- analyse
- Run structural checks plus process-level analysis (
allium analyse). Returns diagnostics and typed findings with evidence. - analyse_
with_ cross_ module - Run structural checks plus process-level analysis with full cross-module context.
- analyse_
with_ external_ refs - Run structural checks plus process-level analysis, accounting for cross-module references.
- analyze
- Run structural checks on a parsed module (
allium check). Returns line-level diagnostics only. - analyze_
with_ cross_ module - Run structural checks with full cross-module context.
- analyze_
with_ external_ refs - Run structural checks, accounting for cross-module references.
- collect_
all_ referenced_ idents - Collect all uppercase identifiers referenced in expressions across a module.
- collect_
declared_ names - Collect all type names declared by a module (entities, external entities, values, enums, actors, contracts, variants).
- collect_
qualified_ references - Collect all qualified-name references (
qualifier/Name) from a module.