API reference
python:irx:irx.analysis.resolved_nodes.ReturnResolution
class ReturnResolution
ReturnResolution(callable: CallableResolution, expected_type: astx.DataType, value_type: astx.DataType | None, returns_void: bool, implicit_conversion: ImplicitConversion | None = None)
Source: packages/irx/src/irx/analysis/resolved_nodes.py:1123
Resolved return-statement semantics.
Capture how one return statement relates to the enclosing function signature and any implicit conversion that analysis inserted.
Attributes
-
callable — Callable.; Type: CallableResolution
-
expected_type — Expected semantic or storage type.; Type: astx.DataType
-
value_type — Type of the stored value.; Type: astx.DataType | None
-
returns_void — Whether to use returns void.; Type: bool
-
implicit_conversion — Implicit conversion.; Type: ImplicitConversion | None
Methods
- __init__ —