Table of Contents

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

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

Location SourceLocation

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

Children ImmutableArray<SyntaxNode>

An immutable array containing all AST nodes of this module.

ModuleType ModuleType

The 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

SourceLocation

ModuleType

The type of module this AST is for.

public ModuleType ModuleType { get; init; }

Property Value

ModuleType