ResolveName implements Activation interface method and proxies @index prefixed lookups into the slot activation associated with the block scope.
(name string)
| 335 | // ResolveName implements Activation interface method and proxies @index prefixed lookups into the slot |
| 336 | // activation associated with the block scope. |
| 337 | func (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. |
| 345 | func (b *constantBlock) Parent() cel.Activation { |