NewVariable creates a new Variable instance with an ID associated with the YAML node.
(node *yaml.Node)
| 618 | |
| 619 | // NewVariable creates a new Variable instance with an ID associated with the YAML node. |
| 620 | func (p *parserImpl) NewVariable(node *yaml.Node) (*Variable, int64) { |
| 621 | id := p.CollectMetadata(node) |
| 622 | v := NewVariable(id) |
| 623 | return v, id |
| 624 | } |
| 625 | |
| 626 | // NewMatch creates a new Match instance with an ID associated with the YAML node. |
| 627 | func (p *parserImpl) NewMatch(node *yaml.Node) (*Match, int64) { |
nothing calls this directly
no test coverage detected