API reference
python:irx:irx.analysis.typing.unary_result_type
function unary_result_type
unary_result_type(op_code: str, operand_type: astx.DataType | None) -> astx.DataType | None
Source: packages/irx/src/irx/analysis/typing.py:58
Compute the semantic result type of a unary operator.
Parameters
-
op_code — Operator spelling.; Type: str
-
operand_type — Type of operand.; Type: astx.DataType | None
Returns
Computed the semantic result type of a unary operator.; Type: astx.DataType | None