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

Method RelativeAttribute

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

223
224// RelativeAttribute refers to an expression and an optional qualifier path.
225func (r *attrFactory) RelativeAttribute(id int64, operand Interpretable) Attribute {
226 return &relativeAttribute{
227 id: id,
228 operand: adaptToV2(operand),
229 qualifiers: []Qualifier{},
230 adapter: r.adapter,
231 fac: r,
232 errorOnBadPresenceTest: r.errorOnBadPresenceTest,
233 }
234}
235
236// NewQualifier is an implementation of the AttributeFactory interface.
237func (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