DocumentSymbolProvider constructor

DocumentSymbolProvider({
  1. FutureOr<Object> provideDocumentSymbols(
    1. TextDocument,
    2. CancellationToken
    )?,
})

Implementation

factory DocumentSymbolProvider(
        {_i4.FutureOr<_i2.Object> Function(
          _i3.TextDocument,
          _i3.CancellationToken,
        )? provideDocumentSymbols}) =>
    DocumentSymbolProvider._(
        provideDocumentSymbols: provideDocumentSymbols == null
            ? null
            : _i5.allowInterop((
                p0,
                p1,
              ) =>
                _i6.Promise.futureOr(() => provideDocumentSymbols(
                      p0,
                      p1,
                    ))));