(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node)
| 836 | } |
| 837 | |
| 838 | func (p *parserImpl) parseMatches(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node) { |
| 839 | id := ctx.CollectMetadata(node) |
| 840 | if p.assertYAMLType(id, node, yamlList) == nil { |
| 841 | return |
| 842 | } |
| 843 | for _, val := range node.Content { |
| 844 | r.AddMatch(p.ParseMatch(ctx, policy, val)) |
| 845 | } |
| 846 | } |
| 847 | |
| 848 | // ParseMatch will parse the current yaml node as though it is the entry point to a match. |
| 849 | func (p *parserImpl) ParseMatch(ctx ParserContext, policy *Policy, node *yaml.Node) *Match { |
no test coverage detected