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