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

Method parseKey

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

Source from the content-addressed store, hash-verified

274 }
275
276 private parseKey(): string {
277 this.skipWhitespace()
278 const character = this.peek()
279 if (character === "\"" || character === "'") {
280 return parseKey(this.readQuoted(character))
281 }
282 return this.readUntil(/:/).trim()
283 }
284
285 private readQuoted(quote: string): string {
286 const start = this.index++

Callers 1

parseMappingMethod · 0.95

Calls 5

skipWhitespaceMethod · 0.95
peekMethod · 0.95
readQuotedMethod · 0.95
readUntilMethod · 0.95
parseKeyFunction · 0.85

Tested by

no test coverage detected