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

Method RelativeAttribute

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

RelativeAttribute refers to an expression and an optional qualifier path.

(id int64, operand Interpretable)

Source from the content-addressed store, hash-verified

240
241// RelativeAttribute refers to an expression and an optional qualifier path.
242func (r *attrFactory) RelativeAttribute(id int64, operand Interpretable) Attribute {
243 return &relativeAttribute{
244 id: id,
245 operand: adaptToV2(operand),
246 qualifiers: []Qualifier{},
247 adapter: r.adapter,
248 fac: r,
249 errorOnBadPresenceTest: r.errorOnBadPresenceTest,
250 }
251}
252
253// NewQualifier is an implementation of the AttributeFactory interface.
254func (r *attrFactory) NewQualifier(objType *types.Type, qualID int64, val any, opt bool) (Qualifier, error) {

Callers

nothing calls this directly

Calls 1

adaptToV2Function · 0.85

Tested by

no test coverage detected