getWordRangeAtPosition property

Range? Function(Position, [RegExp?]) get getWordRangeAtPosition

Implementation

_i3.Range? Function(
  _i3.Position, [
  _i7.RegExp?,
]) get getWordRangeAtPosition => (
      _i3.Position p0, [
      _i7.RegExp? p1,
    ]) =>
        _i5.callMethod(
          _i5.getProperty(
            this,
            'getWordRangeAtPosition',
          ),
          r'call',
          [
            this,
            p0,
            p1 ?? _i6.undefined,
          ],
        );
set getWordRangeAtPosition (Range? value(Position, [RegExp?]))

Implementation

set getWordRangeAtPosition(
    _i3.Range? Function(
      _i3.Position, [
      _i7.RegExp?,
    ]) value) {
  _i5.setProperty(
    this,
    'getWordRangeAtPosition',
    _i5.allowInterop((
      p0,
      p1,
    ) =>
        () =>
            value(
              p0,
              p1,
            ) ??
            _i6.undefined),
  );
}