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

Method readTagToken

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

Source from the content-addressed store, hash-verified

820
821 // A verbatim tag (`!<...>`) may contain `,`, so it is read up to its `>`.
822 private readTagToken(): string {
823 if (this.line[this.index + 1] !== "<") return this.readUntil(isFlowNameEnd)
824 const token = this.readUntil(isVerbatimTagEnd)
825 if (this.peek() !== ">") return token
826 this.index++
827 return `${token}>`
828 }
829
830 // `plain` reads a plain scalar, which also stops at a `:` that separates a key from its
831 // value and at the end of a line a comment ended.

Callers 1

readFlowTagMethod · 0.95

Calls 2

readUntilMethod · 0.95
peekMethod · 0.95

Tested by

no test coverage detected