DocumentRangeSemanticTokensProvider constructor

DocumentRangeSemanticTokensProvider({
  1. FutureOr<SemanticTokens> provideDocumentRangeSemanticTokens(
    1. TextDocument,
    2. Range,
    3. CancellationToken
    )?,
})

Implementation

factory DocumentRangeSemanticTokensProvider(
        {_i4.FutureOr<_i3.SemanticTokens> Function(
          _i3.TextDocument,
          _i3.Range,
          _i3.CancellationToken,
        )? provideDocumentRangeSemanticTokens}) =>
    DocumentRangeSemanticTokensProvider._(
        provideDocumentRangeSemanticTokens:
            provideDocumentRangeSemanticTokens == null
                ? null
                : _i5.allowInterop((
                    p0,
                    p1,
                    p2,
                  ) =>
                    _i6.Promise.futureOr(
                        () => provideDocumentRangeSemanticTokens(
                              p0,
                              p1,
                              p2,
                            ))));