Skip to content

kirin.interp.value.YieldValue

← Module overview

classYieldValuesource

kirin.interp.value.YieldValue

Bases: Generic[ValueType]

Yield value from a statement evaluation.

class YieldValue(values: tuple[ValueType, ...])

This class represents values returned from a statement that terminates current region execution and returns the values to the caller. Unlike ReturnValue, this class won’t pop the frame and return the value to the caller.

Parameters

NameTypeDescription
valuestuple[ValueType, ...]

Attributes

NameTypeDescription
valuestuple[ValueType, ...]