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

Function isExplicitKey

packages/effect/src/encoding/Yaml.ts:388–389  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

386}
387
388const isExplicitKey = (text: string): boolean =>
389 text.charCodeAt(0) === 63 && (text.length === 1 || isWhiteCode(text.charCodeAt(1)))
390
391const explicitKeyError = "YAML explicit keys (`?`) are not supported"
392

Callers 7

readPlainMethod · 0.85
parseNodeMethod · 0.85
parseMappingMethod · 0.85
parseBlockKeyMethod · 0.85
parseSequenceEntryMethod · 0.85
scalarContinuationMethod · 0.85
parseValueMethod · 0.85

Calls 1

isWhiteCodeFunction · 0.85

Tested by

no test coverage detected