(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node)
| 888 | } |
| 889 | |
| 890 | func (p *parserImpl) parseMatches(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node) { |
| 891 | id := ctx.CollectMetadata(node) |
| 892 | if p.assertYAMLType(id, node, yamlList) == nil { |
| 893 | return |
| 894 | } |
| 895 | for _, val := range node.Content { |
| 896 | r.AddMatch(p.parseMatchInternal(ctx, policy, r, val)) |
| 897 | } |
| 898 | } |
| 899 | |
| 900 | // ParseMatch will parse the current yaml node as though it is the entry point to a match. |
| 901 | func (p *parserImpl) ParseMatch(ctx ParserContext, policy *Policy, node *yaml.Node) *Match { |
no test coverage detected