NewRule creates a new Rule instance with an ID associated with the YAML node.
(node *yaml.Node)
| 653 | |
| 654 | // NewRule creates a new Rule instance with an ID associated with the YAML node. |
| 655 | func (p *parserImpl) NewRule(node *yaml.Node) (*Rule, int64) { |
| 656 | id := p.CollectMetadata(node) |
| 657 | r := NewRule(id) |
| 658 | return r, id |
| 659 | } |
| 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) { |
nothing calls this directly
no test coverage detected