Table of Contents

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

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

Location SourceLocation

The source location of this module; the SourceRange is invalid.

Name string

The declared identifier name of the member.

ConstKind ConstKind

The scope kind of constant declaration.

Children ImmutableArray<SyntaxNode>
AccessModifier AccessModifier

An access modifier, if one was supplied.

Properties

AccessModifier

An access modifier, if one was supplied.

public AccessModifier AccessModifier { get; init; }

Property Value

AccessModifier

ConstKind

The scope kind of constant declaration.

public ConstKind ConstKind { get; init; }

Property Value

ConstKind

Location

The source location of this module; the SourceRange is invalid.

public SourceLocation Location { get; init; }

Property Value

SourceLocation

Name

The declared identifier name of the member.

public string Name { get; init; }

Property Value

string