Table of Contents

Class VBLocalConstantSymbol

Namespace
RDCore.SDK.Model.Symbols
Assembly
RDCore.SDK.dll

A TypedSymbol representing a procedure-local Const declaration (MS-VBAL §5.4.3.2). A local constant statically evaluates to a value of a fixed VBType, is visible only within its declaring procedure, and cannot be assigned at run-time; a module-level Const is modelled by VBConstantMemberSymbol and an Enum member by VBEnumConstMemberSymbol.

public record VBLocalConstantSymbol : BoundTypedSymbol, IEquatable<Symbol>, IEquatable<BoundSymbol>, ITypedSymbol, IEquatable<BoundTypedSymbol>, IEquatable<VBLocalConstantSymbol>
Inheritance
VBLocalConstantSymbol
Implements
Inherited Members

Constructors

VBLocalConstantSymbol(Uri, Uri, string, SourceRange, SourceRange, VBType?)

A TypedSymbol representing a procedure-local Const declaration (MS-VBAL §5.4.3.2). A local constant statically evaluates to a value of a fixed VBType, is visible only within its declaring procedure, and cannot be assigned at run-time; a module-level Const is modelled by VBConstantMemberSymbol and an Enum member by VBEnumConstMemberSymbol.

public VBLocalConstantSymbol(Uri WorkspaceRoot, Uri ParentUri, string Name, SourceRange Range, SourceRange SelectionRange, VBType? ResolvedType = null)

Parameters

WorkspaceRoot Uri

The workspace root for this symbol. For an external project or library, this should be different than the user's project workspace.

ParentUri Uri

The Uri of the declaring procedure symbol.

Name string

The identifier name of the symbol.

Range SourceRange

A Range pointing to the document location that belongs to this symbol.

SelectionRange SourceRange

A Range pointing to the document location that should be selected when navigating to this symbol.

ResolvedType VBType

The resolved VBType of the constant, if available. VBUnknownType unless specified otherwise.