API reference
python:irx:irx.analysis.api.analyze
function analyze
analyze(node: astx.AST) -> astx.AST
Source: packages/irx/src/irx/analysis/api.py:35
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 — Syntax node to process.; Type: astx.AST
Returns
Result of this operation: analyze one AST root and attach semantic sidecars.; Type: astx.AST