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:63
Compute the semantic result type of a unary operator.
Parameters
-
op_code — Type: str
-
operand_type — Type: astx.DataType | None
Returns
Type: astx.DataType | None