CommentingRangeProvider constructor

CommentingRangeProvider({
  1. FutureOr<List<Range>> provideCommentingRanges(
    1. TextDocument,
    2. CancellationToken
    )?,
})

Implementation

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