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

Method destroy

decode.go:71–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71func (p *parser) destroy() {
72 if p.event.typ != yaml_NO_EVENT {
73 yaml_event_delete(&p.event)
74 }
75 yaml_parser_delete(&p.parser)
76}
77
78// expect consumes an event from the event stream and
79// checks that it's of the expected type.

Callers 3

unmarshalFunction · 0.45
MarshalFunction · 0.45
EncodeMethod · 0.45

Calls 2

yaml_event_deleteFunction · 0.85
yaml_parser_deleteFunction · 0.85

Tested by

no test coverage detected