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

Method ID

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

ID implements the Attribute interface method.

()

Source from the content-addressed store, hash-verified

272
273// ID implements the Attribute interface method.
274func (a *absoluteAttribute) ID() int64 {
275 qualCount := len(a.qualifiers)
276 if qualCount == 0 {
277 return a.id
278 }
279 return a.qualifiers[qualCount-1].ID()
280}
281
282// IsOptional returns trivially false for an attribute as the attribute represents a fully
283// qualified variable name. If the attribute is used in an optional manner, then an attrQualifier

Callers

nothing calls this directly

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected