Class VBParameterSymbol
Represents a parameter symbol.
public record VBParameterSymbol : VBLocalVariableSymbol, IEquatable<Symbol>, IEquatable<BoundSymbol>, IEquatable<BoundTypedSymbol>, IEquatable<VBLocalVariableSymbol>, IEquatable<VBParameterSymbol>
- Inheritance
-
VBParameterSymbol
- Implements
- Derived
- Inherited Members
Constructors
VBParameterSymbol(Uri, Uri, string, Range, Range, ParameterKind, VBType, bool)
Represents a parameter symbol.
public VBParameterSymbol(Uri WorkspaceRoot, Uri ParentUri, string Name, Range Range, Range SelectionRange, ParameterKind ParameterKind, VBType ResolvedType, bool IsOptional = false)
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.
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.ParameterKindParameterKindDescribes how an argument is passed to this parameter.
ResolvedTypeVBTypeThe resolved type of the symbol, if available.
VBUnknownTypeotherwise.IsOptionalbooltrueif the parameter has anOptionaltoken.
Properties
IsOptional
true if the parameter has an Optional token.
public bool IsOptional { get; init; }
Property Value
ParameterKind
Describes how an argument is passed to this parameter.
public ParameterKind ParameterKind { get; init; }