MCPcopy
hub / github.com/go-yaml/yaml / alias

Method alias

decode.go:214–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212}
213
214func (p *parser) alias() *Node {
215 n := p.node(AliasNode, "", "", string(p.event.anchor))
216 n.Alias = p.anchors[n.Value]
217 if n.Alias == nil {
218 failf("unknown anchor '%s' referenced", n.Value)
219 }
220 p.expect(yaml_ALIAS_EVENT)
221 return n
222}
223
224func (p *parser) scalar() *Node {
225 var parsedStyle = p.event.scalar_style()

Callers 1

parseMethod · 0.95

Calls 3

nodeMethod · 0.95
expectMethod · 0.95
failfFunction · 0.85

Tested by

no test coverage detected