MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / skipWhitespace

Function skipWhitespace

packages/queryLanguage/src/tokens.ts:122–127  ·  view source on GitHub ↗

* Advances past whitespace starting at the given offset.

(input: InputStream, offset: number)

Source from the content-addressed store, hash-verified

120 * Advances past whitespace starting at the given offset.
121 */
122function skipWhitespace(input: InputStream, offset: number): number {
123 while (isWhitespace(input.peek(offset))) {
124 offset++;
125 }
126 return offset;
127}
128
129/**
130 * Checks whether the character at the given offset is escaped by an odd number

Callers 1

isRegexQueryGroupingAtFunction · 0.85

Calls 1

isWhitespaceFunction · 0.85

Tested by

no test coverage detected