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:1146
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 — Function to process.; Type: 'SemanticFunction'
-
yield_type — Type of yield.; Type: astx.DataType
-
yield_nodes — Yield nodes.; Type: tuple[astx.AST, ...]
Methods
- __init__ —
Attributes
-
function —