MCPcopy Create free account
hub / github.com/Effect-TS/effect / skipWhitespace

Method skipWhitespace

packages/effect/src/unstable/encoding/Yaml.ts:304–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302 }
303
304 private skipWhitespace(): void {
305 while (/\s/.test(this.peek())) this.index++
306 }
307
308 private expect(character: string): void {
309 if (this.peek() !== character) this.fail(`Expected '${character}'`)

Callers 5

parseMethod · 0.95
parseValueMethod · 0.95
parseSequenceMethod · 0.95
parseMappingMethod · 0.95
parseKeyMethod · 0.95

Calls 1

peekMethod · 0.95

Tested by

no test coverage detected