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

Function NewAttributePattern

interpreter/attribute_patterns.go:54–59  ·  view source on GitHub ↗

NewAttributePattern produces a new mutable AttributePattern based on a variable name.

(variable string)

Source from the content-addressed store, hash-verified

52
53// NewAttributePattern produces a new mutable AttributePattern based on a variable name.
54func NewAttributePattern(variable string) *AttributePattern {
55 return &AttributePattern{
56 variable: variable,
57 qualifierPatterns: []*AttributeQualifierPattern{},
58 }
59}
60
61// QualString adds a string qualifier pattern to the AttributePattern. The string may be a valid
62// identifier, or string map key including empty string.

Callers 13

computeUnknownVarsMethod · 0.92
AttributePatternFunction · 0.92
TestPartialVarsFunction · 0.92
prune_test.goFile · 0.85
unknownActivationFunction · 0.85
partialActivationFunction · 0.85
testDataFunction · 0.85

Calls

no outgoing calls

Tested by 9

TestPartialVarsFunction · 0.74
unknownActivationFunction · 0.68
partialActivationFunction · 0.68
testDataFunction · 0.68
TestAsPartialActivationFunction · 0.68