Table of Contents

Class VBParameterSymbol

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

Represents a parameter symbol.

public record VBParameterSymbol : VBLocalVariableSymbol, IEquatable<Symbol>, IEquatable<WorkspaceSymbol>, ITypedSymbol, IEquatable<BoundTypedSymbol>, IEquatable<VBLocalVariableSymbol>, IEquatable<VBParameterSymbol>
Inheritance
VBParameterSymbol
Implements
Derived
Inherited Members

Constructors

VBParameterSymbol(Uri, Uri, string, SourceRange, SourceRange, ParameterKind, VBType, bool, ExpressionNode?)

Represents a parameter symbol.

public VBParameterSymbol(Uri WorkspaceRoot, Uri ParentUri, string Name, SourceRange Range, SourceRange SelectionRange, ParameterKind ParameterKind, VBType ResolvedType, bool IsOptional = false, ExpressionNode? DefaultValue = 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 parent 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.

ParameterKind ParameterKind

Describes how an argument is passed to this parameter.

ResolvedType VBType

The resolved type of the symbol, if available. VBUnknownType otherwise.

IsOptional bool

true if the parameter has an Optional token.

DefaultValue ExpressionNode

The parameter's own <default-value> clause (MS-VBAL §5.3.1.5) — a constant expression, exactly as a Const declaration's own is, and reduced to a value the same way and in the same place. null when IsOptional is true but no default was specified: an unmapped call-site argument then falls back to ResolvedType's own default value instead (MS-VBAL §5.3.1.11).

Properties

DefaultValue

The parameter's own <default-value> clause (MS-VBAL §5.3.1.5) — a constant expression, exactly as a Const declaration's own is, and reduced to a value the same way and in the same place. null when IsOptional is true but no default was specified: an unmapped call-site argument then falls back to ResolvedType's own default value instead (MS-VBAL §5.3.1.11).

public ExpressionNode? DefaultValue { get; init; }

Property Value

ExpressionNode

IsOptional

true if the parameter has an Optional token.

public bool IsOptional { get; init; }

Property Value

bool

ParameterKind

Describes how an argument is passed to this parameter.

public ParameterKind ParameterKind { get; init; }

Property Value

ParameterKind