Table of Contents

Class VBSyntaxErrorInfo

Namespace
RDCore.SDK.Model.Errors
Assembly
RDCore.SDK.dll

Encapsulates the serializable error data for a syntax error.

public record VBSyntaxErrorInfo : VBErrorInfo, IEquatable<VBErrorInfo>, IEquatable<VBSyntaxErrorInfo>
Inheritance
VBSyntaxErrorInfo
Implements
Inherited Members

Remarks

A syntax error occurs while traversing the concrete syntax tree (CST) in the parser.

Properties

VBCompileErrorId

The unique error ID for this syntax error.

public VBCompileErrorId VBCompileErrorId { get; }

Property Value

VBCompileErrorId

Remarks

👉 Syntax errors are a class of compilation errors that occur during the parsing process, as the abstract syntax tree (AST) is being assembled.

Methods

For(VBCompileErrorId, Location, string)

Creates a new VBSyntaxErrorInfo describing the specified VBCompileErrorId at the specified Location.

public static VBSyntaxErrorInfo For(VBCompileErrorId vbCompileErrorId, Location location, string Verbose)

Parameters

vbCompileErrorId VBCompileErrorId

The formal VBCompileErrorId value for this error.

location Location

The document location of the problematic node.

Verbose string

A detailed message that is optionally appended, depending on the current server trace configuration.

Returns

VBSyntaxErrorInfo

A new instance of a VBSyntaxErrorInfo encapsulating the specified error metadata with a localized description string.