NewVariable creates a new Variable instance with an ID associated with the YAML node.
(node *yaml.Node)
| 660 | |
| 661 | // NewVariable creates a new Variable instance with an ID associated with the YAML node. |
| 662 | func (p *parserImpl) NewVariable(node *yaml.Node) (*Variable, int64) { |
| 663 | id := p.CollectMetadata(node) |
| 664 | v := NewVariable(id) |
| 665 | return v, id |
| 666 | } |
| 667 | |
| 668 | // NewMatch creates a new Match instance with an ID associated with the YAML node. |
| 669 | func (p *parserImpl) NewMatch(node *yaml.Node) (*Match, int64) { |
nothing calls this directly
no test coverage detected