Class ConstantDeclarationNode
- Namespace
- RDCore.SDK.Model.AST.Declarations
- Assembly
- RDCore.SDK.dll
An AST node representing a declared constant (child of either a member or a module node).
public record ConstantDeclarationNode : SyntaxNode, IEquatable<SyntaxNode>, IEquatable<ConstantDeclarationNode>
- Inheritance
-
ConstantDeclarationNode
- Implements
- Inherited Members
Constructors
ConstantDeclarationNode(SyntaxNodeId, SourceLocation, string, ConstKind, ImmutableArray<SyntaxNode>, AccessModifier)
An AST node representing a declared constant (child of either a member or a module node).
public ConstantDeclarationNode(SyntaxNodeId Identity, SourceLocation Location, string Name, ConstKind ConstKind, ImmutableArray<SyntaxNode> Children, AccessModifier AccessModifier = AccessModifier.Implicit)
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.
ConstKindConstKindThe scope kind of constant declaration.
ChildrenImmutableArray<SyntaxNode>AccessModifierAccessModifierAn access modifier, if one was supplied.
Properties
AccessModifier
An access modifier, if one was supplied.
public AccessModifier AccessModifier { get; init; }
Property Value
ConstKind
The scope kind of constant declaration.
public ConstKind ConstKind { 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; }