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

Method QualifyIfPresent

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

QualifyIfPresent qualifies the object if the qualifier is declared or defined on the object. The 'presenceOnly' flag indicates that the value is not necessary, just a boolean status as to whether the qualifier is present.

(vars Activation, obj any, presenceOnly bool)

Source from the content-addressed store, hash-verified

83 // The 'presenceOnly' flag indicates that the value is not necessary, just a boolean status as
84 // to whether the qualifier is present.
85 QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error)
86}
87
88// ConstantQualifier interface embeds the Qualifier interface and provides an option to inspect the

Callers 3

attrQualifyIfPresentFunction · 0.95
TestQualifyIfPresentFunction · 0.65
applyQualifiersFunction · 0.65

Implementers 13

nestedMsgQualifierinterpreter/attributes_test.go
boolQualifierinterpreter/attributes.go
fieldQualifierinterpreter/attributes.go
stringQualifierinterpreter/attributes.go
intQualifierinterpreter/attributes.go
uintQualifierinterpreter/attributes.go
doubleQualifierinterpreter/attributes.go
evalAttrinterpreter/interpretable.go
absoluteAttributeinterpreter/attributes.go
conditionalAttributeinterpreter/attributes.go
maybeAttributeinterpreter/attributes.go
relativeAttributeinterpreter/attributes.go

Calls

no outgoing calls

Tested by 1

TestQualifyIfPresentFunction · 0.52