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

Method ResolveName

ext/bindings.go:337–342  ·  view source on GitHub ↗

ResolveName implements Activation interface method and proxies @index prefixed lookups into the slot activation associated with the block scope.

(name string)

Source from the content-addressed store, hash-verified

335// ResolveName implements Activation interface method and proxies @index prefixed lookups into the slot
336// activation associated with the block scope.
337func (b *constantBlock) ResolveName(name string) (any, bool) {
338 if idx, found := matchSlot(name, b.slotCount); found {
339 return b.slots.Get(types.Int(idx)), true
340 }
341 return nil, false
342}
343
344// Parent implements the Activation interface.
345func (b *constantBlock) Parent() cel.Activation {

Callers

nothing calls this directly

Calls 3

IntTypeAlias · 0.92
matchSlotFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected