RenameProvider constructor

RenameProvider({
  1. FutureOr<WorkspaceEdit> provideRenameEdits(
    1. TextDocument,
    2. Position,
    3. String,
    4. CancellationToken,
    )?,
  2. FutureOr<Object> prepareRename(
    1. TextDocument,
    2. Position,
    3. CancellationToken
    )?,
})

Implementation

factory RenameProvider({
  _i4.FutureOr<_i3.WorkspaceEdit> Function(
    _i3.TextDocument,
    _i3.Position,
    _i2.String,
    _i3.CancellationToken,
  )? provideRenameEdits,
  _i4.FutureOr<_i2.Object> Function(
    _i3.TextDocument,
    _i3.Position,
    _i3.CancellationToken,
  )? prepareRename,
}) =>
    RenameProvider._(
      provideRenameEdits: provideRenameEdits == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
              p2,
              p3,
            ) =>
              _i6.Promise.futureOr(() => provideRenameEdits(
                    p0,
                    p1,
                    p2,
                    p3,
                  ))),
      prepareRename: prepareRename == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
              p2,
            ) =>
              _i6.Promise.futureOr(() => prepareRename(
                    p0,
                    p1,
                    p2,
                  ))),
    );