Skip to main content

Class ConstantExpression

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

Implements:
WaaS.Models.IConstantExpression

Properties

Instructions

View Source
Declaration
public ReadOnlyMemory<Instruction> Instructions { 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

Implements