MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ParseMatch

Method ParseMatch

policy/parser.go:901–903  ·  view source on GitHub ↗

ParseMatch will parse the current yaml node as though it is the entry point to a match.

(ctx ParserContext, policy *Policy, node *yaml.Node)

Source from the content-addressed store, hash-verified

899
900// ParseMatch will parse the current yaml node as though it is the entry point to a match.
901func (p *parserImpl) ParseMatch(ctx ParserContext, policy *Policy, node *yaml.Node) *Match {
902 return p.parseMatchInternal(ctx, policy, nil, node)
903}
904
905func (p *parserImpl) parseMatchInternal(ctx ParserContext, policy *Policy, r *Rule, node *yaml.Node) *Match {
906 m, id := ctx.NewMatch(node)

Callers

nothing calls this directly

Calls 1

parseMatchInternalMethod · 0.95

Tested by

no test coverage detected