DiagnosticCollection class
A diagnostics collection is a container that manages a set of {@link Diagnosticdiagnostics}. Diagnostics are always scopes to a diagnostics collection and a resource.
To get an instance of a DiagnosticCollection use
{@link languages.createDiagnosticCollectioncreateDiagnosticCollection}.
- Implemented types
-
- Iterable<
(Uri, List< Diagnostic> )>
- Iterable<
- Available extensions
- Annotations
-
- @JS.new()
- @staticInterop
- @anonymous
Constructors
-
DiagnosticCollection({String? name, void delete(Uri)?, void clear()?, void forEach(dynamic (Uri, List<
Diagnostic> , DiagnosticCollection), [dynamic])?, List<Diagnostic> ? get(Uri)?, bool has(Uri)?, void dispose()?}) -
factory
Properties
- clear ↔ void Function()
-
Available on DiagnosticCollection, provided by the DiagnosticCollection$Typings extension
getter/setter pair - delete ↔ void Function(Uri)
-
Available on DiagnosticCollection, provided by the DiagnosticCollection$Typings extension
getter/setter pair - dispose ↔ void Function()
-
Available on DiagnosticCollection, provided by the DiagnosticCollection$Typings extension
getter/setter pair -
forEach
↔ void Function(dynamic (Uri, List<
Diagnostic> , DiagnosticCollection), [dynamic]) -
Available on DiagnosticCollection, provided by the DiagnosticCollection$Typings extension
getter/setter pair -
get
↔ List<
Diagnostic> ? Function(Uri) -
Available on DiagnosticCollection, provided by the DiagnosticCollection$Typings extension
getter/setter pair - has ↔ bool Function(Uri)
-
Available on DiagnosticCollection, provided by the DiagnosticCollection$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Available on DiagnosticCollection, provided by the DiagnosticCollection$Typings extension
The name of this diagnostic collection, for instancetypescript. Every diagnostic from this collection will be associated with this name. Also, the task framework uses this name when defining problem matchers.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
set
→ ({void Function(ReadonlyArray<
(Uri, List< entries) $1, void Function(Uri uri, [List<Diagnostic> ?)>Diagnostic> ? diagnostics]) $2}) -
Available on DiagnosticCollection, provided by the DiagnosticCollection$Typings extension
Overload accessor: $1, $2no setter
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