OkfDiagnostic class final
A machine-readable problem found while consuming an OKF bundle.
Lines and columns are one-based when present. path is a logical bundle path, not necessarily an operating-system path.
Constructors
- OkfDiagnostic(String code, OkfDiagnosticSeverity severity, String message, {String? path, int? line, int? column})
-
Creates a diagnostic.
const
Properties
- code → String
-
A stable identifier suitable for filtering and automation.
final
- column → int?
-
A one-based source column.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isError → bool
-
Whether this diagnostic represents an error.
no setter
- line → int?
-
A one-based source line.
final
- logicalPath → String?
-
Alias that makes the bundle-relative meaning of path explicit.
no setter
- message → String
-
A human-readable explanation.
final
- path → String?
-
The logical document or bundle path associated with the diagnostic.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → OkfDiagnosticSeverity
-
How strongly the diagnostic affects the operation.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts this diagnostic to a stable JSON-compatible mapping.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override