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

Method IsLocalVariable

ext/bindings.go:276–279  ·  view source on GitHub ↗

IsLocalVariable reports whether the variable is locally bound to a block slot.

(name string)

Source from the content-addressed store, hash-verified

274
275// IsLocalVariable reports whether the variable is locally bound to a block slot.
276func (sa *dynamicSlotActivation) IsLocalVariable(name string) bool {
277 _, found := matchSlot(name, sa.slotCount)
278 return found
279}
280
281// ResolveName implements the Activation interface method but handles variables prefixed with `@index`
282// as special variables which exist within the slot-based memory of the cel.@block() where each slot

Callers

nothing calls this directly

Calls 1

matchSlotFunction · 0.85

Tested by

no test coverage detected