CodeActionContext class

Contains additional diagnostic information about the context in which a {@link CodeActionProvider.provideCodeActionscode action} is run.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

CodeActionContext.new({CodeActionTriggerKind? triggerKind, List<Diagnostic>? diagnostics, CodeActionKind? only})
factory

Properties

diagnostics List<Diagnostic>

Available on CodeActionContext, provided by the CodeActionContext$Typings extension

An array of diagnostics.
no setter
hashCode int
The hash code for this object.
no setterinherited
only CodeActionKind?

Available on CodeActionContext, provided by the CodeActionContext$Typings extension

Requested kind of actions to return.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggerKind CodeActionTriggerKind

Available on CodeActionContext, provided by the CodeActionContext$Typings extension

The reason why code actions were requested.
no 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