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

Method NewVariable

policy/parser.go:620–624  ·  view source on GitHub ↗

NewVariable creates a new Variable instance with an ID associated with the YAML node.

(node *yaml.Node)

Source from the content-addressed store, hash-verified

618
619// NewVariable creates a new Variable instance with an ID associated with the YAML node.
620func (p *parserImpl) NewVariable(node *yaml.Node) (*Variable, int64) {
621 id := p.CollectMetadata(node)
622 v := NewVariable(id)
623 return v, id
624}
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) {

Callers

nothing calls this directly

Calls 2

CollectMetadataMethod · 0.95
NewVariableFunction · 0.70

Tested by

no test coverage detected