API reference
python:irx:irx.analysis.normalization.normalize_operator
function normalize_operator
normalize_operator(op_code: str, *, result_type: astx.DataType | None, lhs_type: astx.DataType | None = None, rhs_type: astx.DataType | None = None, flags: SemanticFlags | None = None, mode: astx.NumericMode = astx.NumericMode.CHECKED) -> ResolvedOperator
Source: packages/irx/src/irx/analysis/normalization.py:83
Create a normalized operator record.
Parameters
-
op_code — Type: str
-
result_type — Type: astx.DataType | None
-
lhs_type — Type: astx.DataType | None
-
rhs_type — Type: astx.DataType | None
-
flags — Type: SemanticFlags | None
-
mode — Type: astx.NumericMode
Returns
Type: ResolvedOperator