ParseDiagnostic class

Parsing Diagnostic Information

Records non-fatal issues encountered during the parsing process (e.g., unrecognized tokens, incomplete structures), provided to the rendering layer for error highlighting or debugging.

Constructors

ParseDiagnostic({required SourceRange range, required String message, required DiagnosticSeverity severity, DiagnosticCategory category = DiagnosticCategory.general})
const

Properties

category DiagnosticCategory
Diagnostic category (P1 enhancement: structured error list)
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable diagnostic description
final
range SourceRange
The position of the issue in the source text
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
severity DiagnosticSeverity
Severity level
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited