irx.analysis.handlers.base

irx.analysis.handlers.base

Source: packages/irx/src/irx/analysis/handlers/base.py

title: Shared semantic-analyzer core.
summary: >-
  Hold analyzer state, semantic sidecar helpers, and shared traversal utilities
  that specialized visitor mixins build on.

Classes

SemanticVisitorMixinTypingBase

title: Type-checking-only base for semantic visitor mixins.
attributes:
  context:
    type: SemanticContext
  session:
    type: CompilationSession | None
  factory:
    type: SemanticEntityFactory
  registry:
    type: SemanticRegistry
  bindings:
    type: VisibleBindings

Methods

visit(self, node: astx.AST) -> None
title: Visit AST nodes.
parameters:
  node:
    type: astx.AST

SemanticVisitorMixinRuntimeBase

title: Runtime-empty base for semantic visitor mixins.

SemanticAnalyzerCore(BaseVisitor)

title: Shared semantic analyzer core.
summary: >-
  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

analyze(self, node: astx.AST) -> astx.AST
title: Analyze one AST root.
parameters:
  node:
    type: astx.AST
returns:
  type: astx.AST
analyze_parsed_module(self, parsed_module: ParsedModule, *, predeclared: bool) -> astx.Module
title: Analyze one parsed module.
parameters:
  parsed_module:
    type: ParsedModule
  predeclared:
    type: bool
returns:
  type: astx.Module
visit(self, node: astx.AST) -> None
title: Visit generic AST nodes.
parameters:
  node:
    type: astx.AST