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, SourceRange, SourceRange, ParameterKind, VBType, bool)
Represents a parameter symbol.
public VBParameterSymbol(Uri WorkspaceRoot, Uri ParentUri, string Name, SourceRange Range, SourceRange 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.
RangeSourceRangeA
Rangepointing to the document location that belongs to this symbol.SelectionRangeSourceRangeA
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; }