Class ModuleNode
- Namespace
- RDCore.SDK.Model.AST.Declarations
- Assembly
- RDCore.SDK.dll
An AST root node, representing an entire module.
public record ModuleNode : SyntaxNode, IEquatable<SyntaxNode>, IEquatable<ModuleNode>
- Inheritance
-
ModuleNode
- Implements
- Inherited Members
Constructors
ModuleNode(SyntaxNodeId, SourceLocation, ImmutableArray<SyntaxNode>, ModuleType)
An AST root node, representing an entire module.
public ModuleNode(SyntaxNodeId Identity, SourceLocation Location, ImmutableArray<SyntaxNode> Children, ModuleType ModuleType)
Parameters
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
LocationSourceLocationThe source location of this module; the
SourceRangeis invalid.ChildrenImmutableArray<SyntaxNode>An immutable array containing all AST nodes of this module.
ModuleTypeModuleTypeThe type of module this AST is for.
Properties
Location
The source location of this module; the SourceRange is invalid.
public SourceLocation Location { get; init; }
Property Value
ModuleType
The type of module this AST is for.
public ModuleType ModuleType { get; init; }