setMaxStartDepth method

TreeSitterQueryCursor setMaxStartDepth(
  1. int? maxStartDepth
)

Implementation

TreeSitterQueryCursor setMaxStartDepth(int? maxStartDepth) {
  _checkNotDisposed();
  if (maxStartDepth != null && maxStartDepth < 0) {
    throw RangeError.range(maxStartDepth, 0, null, 'maxStartDepth');
  }
  _maxStartDepth = maxStartDepth;
  return this;
}