API reference
python:irx:irx.analysis.analyze_modules
function analyze_modules
analyze_modules(root: ParsedModule, resolver: ImportResolver) -> CompilationSession
Source: packages/irx/src/irx/analysis/api.py:65
Declared as: python:irx:irx.analysis.api.analyze_modules
Analyze a reachable graph of host-provided parsed modules.
Run the stable multi-module semantic pipeline: expand the reachable module graph, predeclare top-level members, resolve top-level imports, attach semantic sidecars, and raise SemanticError before lowering when diagnostics exist.
Parameters
-
root — Root module or resource.; Type: ParsedModule
-
resolver — Host-supplied module resolver.; Type: ImportResolver
Returns
Result of this operation: analyze a reachable graph of host-provided parsed modules.; Type: CompilationSession