Class LocalDescriptor
A transport-friendly projection of a VBLocalVariableSymbol — one Dim or Static
of a procedure.
public record LocalDescriptor : IEquatable<LocalDescriptor>
- Inheritance
-
LocalDescriptor
- Implements
- Inherited Members
Properties
Array
The array the variable is, when it is one: see Array.
public ArrayDescriptor? Array { get; init; }
Property Value
DeclaredBy
How the variable entered the procedure scope — a real declaration, or an implicit one.
public LocalDeclarationKind DeclaredBy { get; init; }
Property Value
DeclaredTypeName
The declared type's name, or null — resolved host-side like a member's. For an array, its element type's.
public string? DeclaredTypeName { get; init; }
Property Value
IsAutoInstantiated
Whether the variable is an automatic instantiation variable (MS-VBAL §2.5.1): declared
As New.
public bool IsAutoInstantiated { get; init; }
Property Value
IsStatic
Whether the declaration carries the Static token (MS-VBAL §5.4.3.1):
module-extent storage that outlives one activation, not procedure-extent.
public bool IsStatic { get; init; }
Property Value
Name
The variable's identifier name.
public string Name { get; init; }
Property Value
Range
The source span of the declaration.
public SourceRange Range { get; init; }
Property Value
SelectionRange
The source span to select when navigating to the variable.
public SourceRange SelectionRange { get; init; }