Table of Contents

Class ModuleParseResult

Namespace
RDCore.SDK.Model.AST
Assembly
RDCore.SDK.dll
public record ModuleParseResult : IEquatable<ModuleParseResult>
Inheritance
ModuleParseResult
Implements
Inherited Members

Properties

IsSuccess

public bool IsSuccess { get; }

Property Value

bool

PrecompilerTrivia

public ImmutableArray<SyntaxNode> PrecompilerTrivia { get; init; }

Property Value

ImmutableArray<SyntaxNode>

SyntaxErrors

public ImmutableArray<VBSyntaxErrorInfo> SyntaxErrors { get; init; }

Property Value

ImmutableArray<VBSyntaxErrorInfo>

SyntaxTree

public ModuleNode? SyntaxTree { get; init; }

Property Value

ModuleNode

Methods

Failed(SourceLocation, string, SourcePathScrubMode)

A failed parse carrying one synthesized syntax error. verbose is scrubbed through SourcePathAnonymizer per scrub, so this funnel cannot leak a build-machine source path onto the wire regardless of the call site.

public static ModuleParseResult Failed(SourceLocation location, string verbose, SourcePathScrubMode scrub = SourcePathScrubMode.RepoRelative)

Parameters

location SourceLocation
verbose string
scrub SourcePathScrubMode

Returns

ModuleParseResult

Success(ModuleNode)

public static ModuleParseResult Success(ModuleNode node)

Parameters

node ModuleNode

Returns

ModuleParseResult