Class VBSymbolDescValue
A meta-value that represents a resolved Symbol reference — unlike
VBMemberDescValue and VBParameterDescValue, not narrowed to a
particular symbol hierarchy, for an operation (assignment resolving its lExpression target,
chiefly) that needs to carry any kind of resolved symbol through the same
VBTypedValue-based operand pipeline an ordinary value flows through.
public record VBSymbolDescValue : VBTypedValue, IEquatable<VBTypedValue>, IEquatable<VBSymbolDescValue>
- Inheritance
-
VBSymbolDescValue
- Implements
- Inherited Members
Constructors
VBSymbolDescValue(Symbol, VBType?)
A meta-value that represents a resolved Symbol reference — unlike
VBMemberDescValue and VBParameterDescValue, not narrowed to a
particular symbol hierarchy, for an operation (assignment resolving its lExpression target,
chiefly) that needs to carry any kind of resolved symbol through the same
VBTypedValue-based operand pipeline an ordinary value flows through.
public VBSymbolDescValue(Symbol Symbol, VBType? DeclaredType = null)
Parameters
SymbolSymbolThe described symbol.
DeclaredTypeVBTypeThe type the symbol is assigned as, when it is not its own declared type: a
Variantreference parameter bound to a variable of another type is assigned as the variable is (MS-VBAL §5.3.1.11). null for the symbol's own.
Properties
DeclaredType
The type the symbol is assigned as, when it is not its own declared type: a Variant reference parameter bound to a variable of another type is
assigned as the variable is (MS-VBAL §5.3.1.11). null for the symbol's own.
public VBType? DeclaredType { get; init; }
Property Value
Size
The allocated size (in bytes) of this value.
public override int Size { get; }
Property Value
Symbol
The described symbol.
public Symbol Symbol { get; init; }