Struct StackValueItem
Represents a value on the stack.
Assembly: WaaS.Core.dll
View Source
public struct StackValueItem : IEquatable<StackValueItem>
Implements:
System.IEquatable<WaaS.Runtime.StackValueItem>
Properties
IsLabel
View Source
public readonly bool IsLabel { get; }
Methods
ToString()
Returns the fully qualified type name of this instance.
View Source
public override string ToString()
Returns
System.String
: The fully qualified type name.### IsType(ValueType)
View Source
public readonly bool IsType(ValueType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
WaaS.ValueType | type |
TryGetLabel(out Label)
View Source
public readonly bool TryGetLabel(out Label label)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
WaaS.Runtime.Label | label |
TryGetValue(out uint)
View Source
public readonly bool TryGetValue(out uint value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.UInt32 | value |
TryGetValue(out ulong)
View Source
public readonly bool TryGetValue(out ulong value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.UInt64 | value |
TryGetValue(out float)
View Source
public readonly bool TryGetValue(out float value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Single | value |
TryGetValue(out double)
View Source
public readonly bool TryGetValue(out double value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Double | value |
ExpectValue()
View Source
public readonly StackValueItem ExpectValue()
Returns
ExpectValue(out ValueType)
View Source
public readonly StackValueItem ExpectValue(out ValueType type)
Returns
Parameters
Type | Name |
---|---|
WaaS.ValueType | type |
ExpectValue(ValueType)
View Source
public readonly StackValueItem ExpectValue(ValueType type)
Returns
Parameters
Type | Name |
---|---|
WaaS.ValueType | type |
ExpectValueI32()
View Source
public readonly uint ExpectValueI32()
Returns
System.UInt32
ExpectValueI64()
View Source
public readonly ulong ExpectValueI64()
Returns
System.UInt64
ExpectValueF32()
View Source
public readonly float ExpectValueF32()
Returns
System.Single
ExpectValueF64()
View Source
public readonly double ExpectValueF64()
Returns
System.Double
ExpectLabel()
View Source
public readonly Label ExpectLabel()
Returns
Equals(StackValueItem)
Indicates whether the current object is equal to another object of the same type.
View Source
public bool Equals(StackValueItem other)
Returns
System.Boolean
: true if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
WaaS.Runtime.StackValueItem | other | An object to compare with this object. |
Equals(object)
Indicates whether this instance and a specified object are equal.
View Source
public override bool Equals(object obj)
Returns
System.Boolean
: true if <code class="paramref">obj</code> and this instance are the same type and represent the same value; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current instance. |
GetHashCode()
Returns the hash code for this instance.
View Source
public override int GetHashCode()
Returns
System.Int32
: A 32-bit signed integer that is the hash code for this instance.
Implements
System.IEquatable<WaaS.Runtime.StackValueItem>