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

Method QualifyIfPresent

interpreter/attributes.go:1000–1002  ·  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

998
999// QualifyIfPresent is an implementation of the Qualifier interface method.
1000func (q *stringQualifier) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) {
1001 return q.qualifyInternal(vars, obj, true, presenceOnly)
1002}
1003
1004func (q *stringQualifier) qualifyInternal(vars Activation, obj any, presenceTest, presenceOnly bool) (any, bool, error) {
1005 s := q.value

Callers

nothing calls this directly

Calls 1

qualifyInternalMethod · 0.95

Tested by

no test coverage detected