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

Method peek

packages/effect/src/encoding/Yaml.ts:896–900  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

894 }
895
896 private peek(): string {
897 // Inside a collection, the end of the line continues on the next line.
898 if (this.index === this.line.length && this.depth > 0) this.nextChunk("token")
899 return this.line[this.index] ?? ""
900 }
901
902 private fail(message: string): never {
903 throw new SyntaxError(`${message} at flow offset ${this.offset + this.index}`)

Callers 10

parseValueMethod · 0.95
parseTaggedValueMethod · 0.95
readPlainMethod · 0.95
parseSequenceMethod · 0.95
parseSequenceEntryMethod · 0.95
parseMappingMethod · 0.95
parseMappingEntryMethod · 0.95
parseKeyMethod · 0.95
readTagTokenMethod · 0.95
expectMethod · 0.95

Calls 1

nextChunkMethod · 0.95

Tested by

no test coverage detected