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, TemplateVisitorMixin, 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 packages/irx/src/irx/analysis/handlers/base.py
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 | |
analyze
¶
analyze(node: AST) -> AST
Source code in packages/irx/src/irx/analysis/handlers/base.py
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 | |
analyze_parsed_module
¶
analyze_parsed_module(
parsed_module: ParsedModule, *, predeclared: bool
) -> Module
Source code in packages/irx/src/irx/analysis/handlers/base.py
881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 | |
visit
¶
visit(node: ImportFromExpr) -> None
Source code in packages/irx/src/irx/analysis/handlers/imports.py
180 181 182 183 184 185 186 187 188 189 190 191 192 | |