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

Method QualifyIfPresent

interpreter/attributes.go:567–569  ·  view source on GitHub ↗

QualifyIfPresent is an implementation of the Qualifier interface method.

(vars Activation, obj any, presenceOnly bool)

Source from the content-addressed store, hash-verified

565
566// QualifyIfPresent is an implementation of the Qualifier interface method.
567func (a *conditionalAttribute) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {
568 return attrQualifyIfPresent(a.fac, vars, obj, a, presenceOnly)
569}
570
571// Resolve evaluates the condition, and then resolves the truthy or falsy branch accordingly.
572func (a *conditionalAttribute) Resolve(vars Activation) (any, error) {

Callers 1

Calls 1

attrQualifyIfPresentFunction · 0.85

Tested by 1