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

Method expect

packages/effect/src/unstable/encoding/Toml.ts:463–468  ·  view source on GitHub ↗
(character: string)

Source from the content-addressed store, hash-verified

461 }
462
463 private expect(character: string): void {
464 if (this.peek() !== character) {
465 this.fail(`Expected '${character}'`)
466 }
467 this.advance()
468 }
469
470 private advance(count = 1): void {
471 for (let offset = 0; offset < count; offset++) {

Callers 6

parseMethod · 0.95
parseHeaderMethod · 0.95
parseBasicStringMethod · 0.95
parseLiteralStringMethod · 0.95
parseArrayMethod · 0.95
parseInlineTableMethod · 0.95

Calls 3

peekMethod · 0.95
failMethod · 0.95
advanceMethod · 0.95

Tested by

no test coverage detected