NewRule creates a new Rule instance with an ID associated with the YAML node.
(node *yaml.Node)
| 611 | |
| 612 | // NewRule creates a new Rule instance with an ID associated with the YAML node. |
| 613 | func (p *parserImpl) NewRule(node *yaml.Node) (*Rule, int64) { |
| 614 | id := p.CollectMetadata(node) |
| 615 | r := NewRule(id) |
| 616 | return r, id |
| 617 | } |
| 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) { |
nothing calls this directly
no test coverage detected