Skip to main content

Class ConstantExpressionFunction

A reference to a function given by its index, which element segments without expressions hold.

Assembly: WaaS.Core.dll​
View Source​
Declaration
public class ConstantExpressionFunction : IConstantExpression

Implements:
WaaS.Models.IConstantExpression

Properties​

FunctionIndex​

View Source​
Declaration
public uint FunctionIndex { get; }

Methods​

Evaluate(GlobalInstance)​

View Source​
Declaration
public StackValueItem Evaluate(GlobalInstance globalInstance)
Returns​

WaaS.Runtime.StackValueItem

Parameters​
TypeName
WaaS.Runtime.GlobalInstanceglobalInstance

Evaluate(ReadOnlySpan<Global>)​

View Source​
Declaration
public StackValueItem Evaluate(ReadOnlySpan<Global> initializingGlobals)
Returns​

WaaS.Runtime.StackValueItem

Parameters​
TypeName
System.ReadOnlySpan<WaaS.Runtime.Global>initializingGlobals

Evaluate(ReadOnlySpan<Global>, ReadOnlySpan<IInvocableFunction>)​

View Source​
Declaration
public StackValueItem Evaluate(ReadOnlySpan<Global> globals, ReadOnlySpan<IInvocableFunction> functions)
Returns​

WaaS.Runtime.StackValueItem

Parameters​
TypeNameDescription
System.ReadOnlySpan<WaaS.Runtime.Global>globalsThe globals that the expression can read.
System.ReadOnlySpan<WaaS.Runtime.IInvocableFunction>functionsThe functions in the function index space, referenced by ref.func.

Implements​