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

Method parseInlineValue

packages/effect/src/unstable/encoding/Yaml.ts:438–448  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

436 }
437
438 private parseInlineValue(value: string): unknown {
439 if (value.startsWith("*")) {
440 const name = value.slice(1).trim()
441 if (!this.anchors.has(name)) throw new SyntaxError(`Unknown YAML alias '*${name}'`)
442 return this.anchors.get(name)
443 }
444 if (value.startsWith("[") || value.startsWith("{")) {
445 return new FlowParser(value, this.anchors).parse()
446 }
447 return parseScalar(value)
448 }
449
450 private parseBlockScalar(indicator: string, parentIndent: number): string {
451 const style = indicator[0]

Callers 2

parseNodeMethod · 0.95
parseNodeValueMethod · 0.95

Calls 4

parseScalarFunction · 0.85
getMethod · 0.65
hasMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected