Class ParameterDeclarationNode
- Namespace
- RDCore.SDK.Model.AST.Declarations
- Assembly
- RDCore.SDK.dll
An AST node representing a parameter (child of a member node).
public record ParameterDeclarationNode : SyntaxNode, IEquatable<SyntaxNode>, IEquatable<ParameterDeclarationNode>
- Inheritance
-
ParameterDeclarationNode
- Implements
- Inherited Members
Constructors
ParameterDeclarationNode(SyntaxNodeId, SourceLocation, string, ParameterKind, bool, bool, ImmutableArray<SyntaxNode>)
An AST node representing a parameter (child of a member node).
public ParameterDeclarationNode(SyntaxNodeId Identity, SourceLocation Location, string Name, ParameterKind ParameterKind = ParameterKind.ImplicitByRef, bool IsOptional = false, bool IsParamArray = false, ImmutableArray<SyntaxNode> Children = default)
Parameters
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
LocationSourceLocationThe source location of this module; the
SourceRangeis invalid.NamestringThe declared identifier name of the member.
ParameterKindParameterKindThe kind (ByRef/ByVal) of parameter.
IsOptionalboolAn indicator that is
trueif the parameter is optional.IsParamArrayboolAn indicator that is
trueif the parameter is a parameter array.ChildrenImmutableArray<SyntaxNode>
Properties
IsOptional
An indicator that is true if the parameter is optional.
public bool IsOptional { get; init; }
Property Value
IsParamArray
An indicator that is true if the parameter is a parameter array.
public bool IsParamArray { get; init; }
Property Value
Location
The source location of this module; the SourceRange is invalid.
public SourceLocation Location { get; init; }
Property Value
Name
The declared identifier name of the member.
public string Name { get; init; }
Property Value
ParameterKind
The kind (ByRef/ByVal) of parameter.
public ParameterKind ParameterKind { get; init; }