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

Method shiftUntilNext

ark/util/scanner.ts:138–142  ·  view source on GitHub ↗
(charOrSet: string | KeySet)

Source from the content-addressed store, hash-verified

136 }
137
138 shiftUntilNext(charOrSet: string | KeySet): string {
139 return typeof charOrSet === "string" ?
140 this.shiftUntil(s => s.peek === charOrSet)
141 : this.shiftUntil(s => s.peek in charOrSet)
142 }
143
144 /** shifts past whitespace, returning what it shifted */
145 skipSpace(): string {

Callers 2

shiftUntilTerminatorFunction · 0.80
parseDefaultArrayFunction · 0.80

Calls 1

shiftUntilMethod · 0.95

Tested by

no test coverage detected