irx.analysis.module_interfaces

irx.analysis.module_interfaces

Source: packages/irx/src/irx/analysis/module_interfaces.py

title: Host-facing module interfaces for multi-module analysis.
summary: >-
  Define the parser-agnostic types that hosts pass into IRx for multi-module
  compilation.

Classes

ParsedModule

title: One parsed module supplied by the host compiler.
summary: >-
  Bundle a host-owned module key with the parsed AST and optional human-
  facing origin metadata.
attributes:
  key:
    type: ModuleKey
  ast:
    type: astx.Module
  display_name:
    type: str | None
  origin:
    type: str | None

ImportResolver(Protocol)

title: Host callback that resolves imports to parsed modules.
summary: >-
  Describe the host-owned callback IRx uses to turn import specifiers into
  already-parsed modules.