MCPcopy Create free account
hub / github.com/arktypeio/arktype / skipSpace

Method skipSpace

ark/util/scanner.ts:145–147  ·  view source on GitHub ↗

shifts past whitespace, returning what it shifted

()

Source from the content-addressed store, hash-verified

143
144 /** shifts past whitespace, returning what it shifted */
145 skipSpace(): string {
146 return this.shiftUntil(() => !(this.peek in whitespaceChars))
147 }
148
149 jumpForward(count: number): void {
150 this.i += count

Callers 9

parseGenericParamNameFunction · 0.80
_parseOptionalConstraintFunction · 0.80
fullStringParseFunction · 0.80
parseDefaultFunction · 0.80
parseDefaultArrayFunction · 0.80
parseDivisorFunction · 0.80
parseBrandFunction · 0.80
parseRightBoundFunction · 0.80

Calls 1

shiftUntilMethod · 0.95

Tested by

no test coverage detected