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

Method NewMatch

policy/parser.go:627–631  ·  view source on GitHub ↗

NewMatch creates a new Match instance with an ID associated with the YAML node.

(node *yaml.Node)

Source from the content-addressed store, hash-verified

625
626// NewMatch creates a new Match instance with an ID associated with the YAML node.
627func (p *parserImpl) NewMatch(node *yaml.Node) (*Match, int64) {
628 id := p.CollectMetadata(node)
629 m := NewMatch(id)
630 return m, id
631}
632
633// NewString creates a new ValueString from the YAML node.
634func (p *parserImpl) NewString(node *yaml.Node) ValueString {

Callers

nothing calls this directly

Calls 2

CollectMetadataMethod · 0.95
NewMatchFunction · 0.85

Tested by

no test coverage detected