(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node)
| 832 | } |
| 833 | |
| 834 | func (p *parserImpl) parseVariables(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node) { |
| 835 | id := ctx.CollectMetadata(node) |
| 836 | if p.assertYAMLType(id, node, yamlList) == nil { |
| 837 | return |
| 838 | } |
| 839 | p.RangeList(node, func(i int, val *yaml.Node) bool { |
| 840 | r.AddVariable(p.ParseVariable(ctx, policy, val)) |
| 841 | return true |
| 842 | }) |
| 843 | } |
| 844 | |
| 845 | // ParseVariable will parse the current yaml node as though it is the entry point to a variable. |
| 846 | func (p *parserImpl) ParseVariable(ctx ParserContext, policy *Policy, node *yaml.Node) *Variable { |
no test coverage detected