base
¶
Hold analyzer state, semantic sidecar helpers, and shared traversal utilities that specialized visitor mixins build on.
Classes:
SemanticAnalyzerCore
¶
SemanticAnalyzerCore(
*,
context: SemanticContext | None = None,
session: CompilationSession | None = None,
)
Bases: BaseVisitor
Provide shared semantic-analysis state and helper behavior for the specialized visitor mixins that implement node-specific rules. attributes: context: type: SemanticContext session: type: CompilationSession | None factory: type: SemanticEntityFactory registry: type: SemanticRegistry bindings: type: VisibleBindings
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: AST) -> None
Source code in src/irx/analysis/handlers/base.py
1330 1331 1332 1333 1334 1335 1336 1337 1338 | |