setMatchLimit method

TreeSitterQueryCursor setMatchLimit(
  1. int matchLimit
)

Implementation

TreeSitterQueryCursor setMatchLimit(int matchLimit) {
  _checkNotDisposed();
  if (matchLimit < 0 || matchLimit > 0xffffffff) {
    throw RangeError.range(matchLimit, 0, 0xffffffff, 'matchLimit');
  }
  _matchLimit = matchLimit;
  return this;
}