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

Method parseBlockValue

packages/effect/src/encoding/Yaml.ts:1272–1281  ·  view source on GitHub ↗
(parentIndent: number, allowIndentless: boolean)

Source from the content-addressed store, hash-verified

1270
1271 // The node on the lines after a value that is empty on its own line.
1272 private parseBlockValue(parentIndent: number, allowIndentless: boolean): unknown {
1273 this.skipIgnored()
1274 const next = this.lineAt(this.index)
1275 if (next === undefined) return null
1276 if (next.indent > parentIndent) return this.parseNode(next.indent, parentIndent, allowIndentless)
1277 if (allowIndentless && next.indent === parentIndent && isSequenceEntry(next.text)) {
1278 return this.parseSequence(parentIndent)
1279 }
1280 return null
1281 }
1282
1283 private parseFlowValue(text: string, parentIndent: number): unknown {
1284 return new FlowParser(

Callers 4

parseMappingEntryMethod · 0.95
parseSequenceEntryMethod · 0.95
parseNodeValueMethod · 0.95
parseValueMethod · 0.95

Calls 5

skipIgnoredMethod · 0.95
lineAtMethod · 0.95
parseNodeMethod · 0.95
parseSequenceMethod · 0.95
isSequenceEntryFunction · 0.85

Tested by

no test coverage detected