API reference
python:irx:irx.analysis.analyze
function analyze
analyze(node: astx.AST, *, configuration: HandlerConfiguration | None = None) -> astx.AST
Source: packages/irx/src/irx/analysis/api.py:38
Declared as: python:irx:irx.analysis.api.analyze
Analyze one AST root and attach semantic sidecars.
Run the stable single-root semantic-validation path, attach node.semantic sidecars to analyzed nodes, and raise SemanticError before lowering when diagnostics exist.
Parameters
-
node — Type: astx.AST
-
configuration — Type: HandlerConfiguration | None
Returns
Type: astx.AST