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:21
Compute the semantic result type of a binary operator.
Parameters
-
op_code โ Type: str
-
lhs_type โ Type: astx.DataType | None
-
rhs_type โ Type: astx.DataType | None
Returns
Type: astx.DataType | None