RenameProvider constructor
RenameProvider({
- FutureOr<
WorkspaceEdit> provideRenameEdits()?, - FutureOr<
Object> prepareRename()?,
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,
))),
);