provideFoldingRanges property

FutureOr<List<FoldingRange>> Function(TextDocument, FoldingContext, CancellationToken) get provideFoldingRanges

Implementation

_i4.FutureOr<_i2.List<_i3.FoldingRange>> Function(
  _i3.TextDocument,
  _i3.FoldingContext,
  _i3.CancellationToken,
) get provideFoldingRanges => (
      _i3.TextDocument p0,
      _i3.FoldingContext p1,
      _i3.CancellationToken p2,
    ) =>
        _i5.callMethod(
          _i5.getProperty(
            this,
            'provideFoldingRanges',
          ),
          r'call',
          [
            this,
            p0,
            p1,
            p2,
          ],
        );
set provideFoldingRanges (FutureOr<List<FoldingRange>> value(TextDocument, FoldingContext, CancellationToken))

Implementation

set provideFoldingRanges(
    _i4.FutureOr<_i2.List<_i3.FoldingRange>> Function(
      _i3.TextDocument,
      _i3.FoldingContext,
      _i3.CancellationToken,
    ) value) {
  _i5.setProperty(
    this,
    'provideFoldingRanges',
    _i5.allowInterop((
      p0,
      p1,
      p2,
    ) =>
        _i6.Promise.futureOr(() => value(
              p0,
              p1,
              p2,
            ))),
  );
}