Class ModuleParseResult
public record ModuleParseResult : IEquatable<ModuleParseResult>
- Inheritance
-
ModuleParseResult
- Implements
- Inherited Members
Properties
IsSuccess
public bool IsSuccess { get; }
Property Value
PrecompilerTrivia
public ImmutableArray<SyntaxNode> PrecompilerTrivia { get; init; }
Property Value
SyntaxErrors
public ImmutableArray<VBSyntaxErrorInfo> SyntaxErrors { get; init; }
Property Value
SyntaxTree
public ModuleNode? SyntaxTree { get; init; }
Property Value
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
locationSourceLocationverbosestringscrubSourcePathScrubMode
Returns
Success(ModuleNode)
public static ModuleParseResult Success(ModuleNode node)
Parameters
nodeModuleNode