NamedValueExpression class final
Represents an expression that references a named value.
Base classes
- class ValueExpressionBase
- Common base class for both NamedValueExpression and HierarchicalValueExpression.
Public functions
- const ConstantValue& evalRef(EvalContext& context, ConstantValue& storage) const
- Evaluates the expression without copying the referenced value.
Function documentation
const ConstantValue& slang:: ast:: NamedValueExpression:: evalRef(EvalContext& context,
ConstantValue& storage) const
Evaluates the expression without copying the referenced value.
Returns a reference to the parameter's value or to the local variable's storage in the current call frame; a reference to a local is only valid until that variable is next modified. Values that must be computed are placed in storage and a reference to it is returned. If evaluation fails the result is an invalid value.