CodeActionProvider<T extends CodeAction> constructor

CodeActionProvider<T extends CodeAction>({
  1. FutureOr<List<Object>> provideCodeActions(
    1. TextDocument,
    2. Object,
    3. CodeActionContext,
    4. CancellationToken,
    )?,
  2. FutureOr<CodeAction> resolveCodeAction(
    1. CodeAction,
    2. CancellationToken
    )?,
})

Implementation

factory CodeActionProvider({
  _i4.FutureOr<_i2.List<_i2.Object>> Function(
    _i3.TextDocument,
    _i2.Object,
    _i3.CodeActionContext,
    _i3.CancellationToken,
  )? provideCodeActions,
  _i4.FutureOr<_i3.CodeAction> Function(
    _i3.CodeAction,
    _i3.CancellationToken,
  )? resolveCodeAction,
}) =>
    CodeActionProvider._(
      provideCodeActions: provideCodeActions == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
              p2,
              p3,
            ) =>
              _i6.Promise.futureOr(() => provideCodeActions(
                    p0,
                    p1,
                    p2,
                    p3,
                  ))),
      resolveCodeAction: resolveCodeAction == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => resolveCodeAction(
                    p0,
                    p1,
                  ))),
    );