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

Method IsLocalVariable

ext/bindings.go:350–353  ·  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

348
349// IsLocalVariable reports whether the variable is locally bound to a block slot.
350func (b *constantBlock) IsLocalVariable(name string) bool {
351 _, found := matchSlot(name, b.slotCount)
352 return found
353}
354
355func matchSlot(name string, slotCount int) (int, bool) {
356 if idx, found := strings.CutPrefix(name, indexPrefix); found {

Callers

nothing calls this directly

Calls 1

matchSlotFunction · 0.85

Tested by

no test coverage detected