Class VBSyntaxErrorInfo
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
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
vbCompileErrorIdVBCompileErrorIdThe formal VBCompileErrorId value for this error.
locationLocationThe document location of the problematic node.
VerbosestringA 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.