Table of Contents

Class ModuleHeaderTriviaNode

Namespace
RDCore.SDK.Model.AST.Abstract
Assembly
RDCore.SDK.dll

Preserves a part of a class, form or document module's file header: the VERSION 1.0 CLASS line, the Object = "{GUID}#..." references, or the top-level BEGIN ... END configuration block.

public sealed record ModuleHeaderTriviaNode : SyntaxNode, IEquatable<SyntaxNode>, IEquatable<ModuleHeaderTriviaNode>
Inheritance
ModuleHeaderTriviaNode
Implements
Inherited Members
Extension Methods

Remarks

None of it is code, but it is source: a faithful tree has to account for it so that a formatter or an exporter can write the module back out as it was read. Whatever the grammar recognized inside the header is kept as Source only, since no consumer binds anything to it.

Constructors

ModuleHeaderTriviaNode(SyntaxNodeId, SourceLocation, string)

Preserves a part of a class, form or document module's file header: the VERSION 1.0 CLASS line, the Object = "{GUID}#..." references, or the top-level BEGIN ... END configuration block.

public ModuleHeaderTriviaNode(SyntaxNodeId Identity, SourceLocation SourceLocation, string Source)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

SourceLocation SourceLocation

The document location (Uri+Range) of the header part.

Source string

The exact original source text of the header part.

Remarks

None of it is code, but it is source: a faithful tree has to account for it so that a formatter or an exporter can write the module back out as it was read. Whatever the grammar recognized inside the header is kept as Source only, since no consumer binds anything to it.

Properties

Source

The exact original source text of the header part.

public string Source { get; init; }

Property Value

string