(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node)
| 780 | } |
| 781 | |
| 782 | func (p *parserImpl) parseVariables(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node) { |
| 783 | id := ctx.CollectMetadata(node) |
| 784 | if p.assertYAMLType(id, node, yamlList) == nil { |
| 785 | return |
| 786 | } |
| 787 | p.RangeList(node, func(i int, val *yaml.Node) bool { |
| 788 | r.AddVariable(p.ParseVariable(ctx, policy, val)) |
| 789 | return true |
| 790 | }) |
| 791 | } |
| 792 | |
| 793 | // ParseVariable will parse the current yaml node as though it is the entry point to a variable. |
| 794 | func (p *parserImpl) ParseVariable(ctx ParserContext, policy *Policy, node *yaml.Node) *Variable { |
no test coverage detected