API reference
python:irx:irx.analysis.typing.binary_result_type
function binary_result_type
binary_result_type(op_code: str, lhs_type: astx.DataType | None, rhs_type: astx.DataType | None) -> astx.DataType | None
Source: packages/irx/src/irx/analysis/typing.py:20
Compute the semantic result type of a binary operator.
Parameters
-
op_code โ Operator spelling.; Type: str
-
lhs_type โ Type of left operand.; Type: astx.DataType | None
-
rhs_type โ Type of right operand.; Type: astx.DataType | None
Returns
Computed the semantic result type of a binary operator.; Type: astx.DataType | None