API reference
python:irx:irx.analysis.contract.SemanticContract
class SemanticContract
SemanticContract(stable_phases: tuple[SemanticPhase, ...], required_node_semantic_fields: tuple[str, ...], required_session_fields: tuple[str, ...], allowed_host_entrypoints: tuple[str, ...], allowed_host_inputs: tuple[str, ...], phase_error_boundaries: tuple[PhaseErrorBoundary, ...])
Source: packages/irx/src/irx/analysis/contract.py:64
Stable semantic contract exposed by IRx.
Collect the semantic phases, metadata requirements, host input constraints, and error boundaries that analysis guarantees to lowering and host compilers.
Attributes
-
stable_phases — Stable phases.; Type: tuple[SemanticPhase, ...]
-
required_node_semantic_fields — Required node semantic fields.; Type: tuple[str, ...]
-
required_session_fields — Required session fields.; Type: tuple[str, ...]
-
allowed_host_entrypoints — Allowed host entrypoints.; Type: tuple[str, ...]
-
allowed_host_inputs — Allowed host inputs.; Type: tuple[str, ...]
-
phase_error_boundaries — Phase error boundaries.; Type: tuple[PhaseErrorBoundary, ...]
Methods
- __init__ —