API reference
python:irx:irx.analysis.resolved_nodes.ResolvedGeneratorFunction
class ResolvedGeneratorFunction
ResolvedGeneratorFunction(function: 'SemanticFunction', yield_type: astx.DataType, yield_nodes: tuple[astx.AST, ...] = ())
Source: packages/irx/src/irx/analysis/resolved_nodes.py:1349
Resolved generator-function semantics.
Describe one function body that suspends at yield sites and returns a first-class generator object from call sites.
Attributes
-
function — Type: SemanticFunction
-
yield_type — Type: astx.DataType
-
yield_nodes — Type: tuple[astx.AST, Ellipsis]
Methods
- __init__ —
Attributes
-
function —