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

Method expect

packages/effect/src/encoding/Yaml.ts:890–894  ·  view source on GitHub ↗
(character: string)

Source from the content-addressed store, hash-verified

888 }
889
890 private expect(character: string): void {
891 if (this.peek() !== character) this.fail(`Expected '${character}'`)
892 this.index++
893 this.afterJsonNode = false
894 }
895
896 private peek(): string {
897 // Inside a collection, the end of the line continues on the next line.

Callers 4

parseSequenceMethod · 0.95
parseMappingMethod · 0.95
parseMappingEntryMethod · 0.95
parseKeyMethod · 0.95

Calls 2

peekMethod · 0.95
failMethod · 0.95

Tested by

no test coverage detected