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

Method readFlowTag

packages/effect/src/encoding/Yaml.ts:813–819  ·  view source on GitHub ↗
(fail: (message: string) => never)

Source from the content-addressed store, hash-verified

811 // YAML 1.2.2 §7.5: a tag is separated from its content, which may be empty before a
812 // flow indicator or at the end of the line.
813 private readFlowTag(fail: (message: string) => never): string {
814 const tag = readTag(this.readTagToken(), fail)
815 if (this.index < this.line.length && !isFlowAliasEnd(this.line.charCodeAt(this.index))) {
816 this.fail(`Expected white space after the YAML tag ${tag}`)
817 }
818 return tag
819 }
820
821 // A verbatim tag (`!<...>`) may contain `,`, so it is read up to its `>`.
822 private readTagToken(): string {

Callers 1

parseTaggedValueMethod · 0.95

Calls 4

readTagTokenMethod · 0.95
failMethod · 0.95
readTagFunction · 0.85
isFlowAliasEndFunction · 0.85

Tested by

no test coverage detected