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

Method QualifyIfPresent

interpreter/interpretable.go:106–106  ·  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

104 // The 'presenceOnly' flag indicates that the value is not necessary, just a boolean status as
105 // to whether the qualifier is present.
106 QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error)
107
108 // IsOptional indicates whether the resulting value is an optional type.
109 IsOptional() bool

Callers 6

QualifyMethod · 0.65
QualifyIfPresentMethod · 0.65
QualifyIfPresentMethod · 0.65
QualifyIfPresentMethod · 0.65
QualifyIfPresentMethod · 0.65
QualifyIfPresentMethod · 0.65

Implementers 1

evalAttrinterpreter/interpretable.go

Calls

no outgoing calls

Tested by

no test coverage detected