analyzer
¶
Compose the specialized semantic visitor mixins around a shared analyzer core so traversal, registration, bindings, and rule logic live in smaller modules.
Classes:
SemanticAnalyzer
¶
SemanticAnalyzer(
*,
context: SemanticContext | None = None,
session: CompilationSession | None = None,
)
Bases: ImportVisitorMixin, DeclarationVisitorMixin, ExpressionVisitorMixin, ControlFlowVisitorMixin, SemanticAnalyzerCore
Walk AST nodes, attach semantic sidecars, and delegate reusable policy to the extracted factories, registries, and binding tables.
Methods:
Source code in src/irx/analysis/handlers/base.py
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 | |
analyze
¶
analyze(node: AST) -> AST
Source code in src/irx/analysis/handlers/base.py
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 | |
analyze_parsed_module
¶
analyze_parsed_module(
parsed_module: ParsedModule, *, predeclared: bool
) -> Module
Source code in src/irx/analysis/handlers/base.py
620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 | |
visit
¶
visit(node: ImportFromExpr) -> None
Source code in src/irx/analysis/handlers/imports.py
158 159 160 161 162 163 164 165 166 167 168 169 170 | |