Diagnostic class
Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a file.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- Diagnostic(Range range, String message, [DiagnosticSeverity? severity])
-
factory
Properties
- code ↔ Object
-
Available on Diagnostic, provided by the Diagnostic$Typings extension
A code or identifier for this diagnostic. Should be used for later processing, e.g. when providing {@link CodeActionContext code actions}.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String
-
Available on Diagnostic, provided by the Diagnostic$Typings extension
The human-readable message.getter/setter pair - range ↔ Range
-
Available on Diagnostic, provided by the Diagnostic$Typings extension
The range to which this diagnostic applies.getter/setter pair -
Available on Diagnostic, provided by the Diagnostic$Typings extension
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity ↔ DiagnosticSeverity
-
Available on Diagnostic, provided by the Diagnostic$Typings extension
The severity, default is {@link DiagnosticSeverity.Error error}.getter/setter pair - source ↔ String
-
Available on Diagnostic, provided by the Diagnostic$Typings extension
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.getter/setter pair -
Available on Diagnostic, provided by the Diagnostic$Typings extension
Additional metadata about the diagnostic.getter/setter pair
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