Class VBLocalVariableSymbol
A TypedSymbol representing any local variable.
public record VBLocalVariableSymbol : BoundTypedSymbol, IEquatable<Symbol>, IEquatable<BoundSymbol>, IEquatable<BoundTypedSymbol>, IEquatable<VBLocalVariableSymbol>
- Inheritance
-
VBLocalVariableSymbol
- Implements
- Derived
- Inherited Members
Constructors
VBLocalVariableSymbol(Uri, Uri, string, ScopeKind, Range, Range, bool, VBType?)
A TypedSymbol representing any local variable.
public VBLocalVariableSymbol(Uri WorkspaceRoot, Uri ParentUri, string Name, ScopeKind Scope, Range Range, Range SelectionRange, bool IsStatic = false, VBType? ResolvedType = null)
Parameters
WorkspaceRootUriThe workspace root for this symbol. For an external project or library, this should be different than the user's project workspace.
ParentUriUriThe
Uriof the parent symbol.NamestringThe identifier name of the symbol.
ScopeScopeKindThe allocation scope of the symbol.
RangeRangeA
Rangepointing to the document location that belongs to this symbol.SelectionRangeRangeA
Rangepointing to the document location that should be selected when navigating to this symbol.IsStaticbooltrueif the symbol declaration includes an explicitStatictoken.ResolvedTypeVBTypeThe resolved
VBTypeof the symbol, if available.VBUnknownTypeunless specified otherwise.
Properties
IsStatic
true if the declaration has an explicit Static token.
public bool IsStatic { get; init; }
Property Value
Remarks
Use semantic flags instead to determine if a variable is semantically Static.
Methods
WithStaticModifier(bool)
Creates and returns a copy of this symbol with the IsStatic flag set to true unless specified otherwise.
public BoundTypedSymbol WithStaticModifier(bool value = true)
Parameters
valuebool