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

Method AddQualifier

interpreter/attributes.go:549–559  ·  view source on GitHub ↗

AddQualifier appends the same qualifier to both sides of the conditional, in effect managing the qualification of alternate attributes.

(qual Qualifier)

Source from the content-addressed store, hash-verified

547// AddQualifier appends the same qualifier to both sides of the conditional, in effect managing
548// the qualification of alternate attributes.
549func (a *conditionalAttribute) AddQualifier(qual Qualifier) (Attribute, error) {
550 _, err := a.truthy.AddQualifier(qual)
551 if err != nil {
552 return nil, err
553 }
554 _, err = a.falsy.AddQualifier(qual)
555 if err != nil {
556 return nil, err
557 }
558 return a, nil
559}
560
561// Qualify is an implementation of the Qualifier interface method.
562func (a *conditionalAttribute) Qualify(vars Activation, obj any) (any, error) {

Callers

nothing calls this directly

Calls 1

AddQualifierMethod · 0.65

Tested by

no test coverage detected