ImplementationSource typedef

ImplementationSource = FutureOr<DefinitionResult?> Function(EditorState state, int pos)

The type of function that provides implementations for positions.

Called when the user requests "go to implementation". Returns locations where an interface or abstract method is implemented.

Implementation

typedef ImplementationSource = FutureOr<DefinitionResult?> Function(
  EditorState state,
  int pos,
);