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

Method isValueSeparator

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

Source from the content-addressed store, hash-verified

854 // YAML 1.2.2 §7.3.3: in flow context, a `:` followed by white space, a line break or a flow
855 // indicator separates a key from its value. Any other `:` is part of a plain scalar.
856 private isValueSeparator(): boolean {
857 const next = this.line.charCodeAt(this.index + 1)
858 return this.index + 1 >= this.line.length || isWhiteCode(next) || isFlowIndicatorCode(next)
859 }
860
861 // Preserve "\n" on continuation lines. Inside quotes, `#` is content; inside plain scalars,
862 // quotes are content. Token mode permits new quoted scalars.

Callers 1

readUntilMethod · 0.95

Calls 2

isWhiteCodeFunction · 0.85
isFlowIndicatorCodeFunction · 0.85

Tested by

no test coverage detected