Skip to main content

Struct ValidationContext

Context object for instruction validation.

Assembly: WaaS.Core.dll
View Source
Declaration
public readonly struct ValidationContext

Properties

Module

View Source
Declaration
public Module Module { get; }

CurrentFunction

View Source
Declaration
public Function CurrentFunction { get; }

Methods

GetFunctionType(uint)

View Source
Declaration
public FunctionType GetFunctionType(uint runtimeFunctionIndex)
Returns

WaaS.Models.FunctionType

Parameters
TypeName
System.UInt32runtimeFunctionIndex

GetLocalType(uint)

View Source
Declaration
public ValueType GetLocalType(uint index)
Returns

WaaS.ValueType

Parameters
TypeName
System.UInt32index

GetGlobalType(uint)

View Source
Declaration
public GlobalType GetGlobalType(uint index)
Returns

WaaS.Models.GlobalType

Parameters
TypeName
System.UInt32index

GetTableType(uint)

View Source
Declaration
public TableType GetTableType(uint index)
Returns

WaaS.Models.TableType

Parameters
TypeName
System.UInt32index

GetMemoryType(uint)

View Source
Declaration
public MemoryType GetMemoryType(uint index)
Returns

WaaS.Models.MemoryType

Parameters
TypeName
System.UInt32index