MCPcopy Index your code
hub / github.com/Shopify/go-lua / moveGotosOut

Method moveGotosOut

code.go:221–230  ·  view source on GitHub ↗
(b block)

Source from the content-addressed store, hash-verified

219}
220
221func (f *function) moveGotosOut(b block) {
222 for i := b.firstGoto; i < len(f.p.pendingGotos); i += f.findLabel(i) {
223 if f.p.pendingGotos[i].activeVariableCount > b.activeVariableCount {
224 if b.hasUpValue {
225 f.PatchClose(f.p.pendingGotos[i].pc, b.activeVariableCount)
226 }
227 f.p.pendingGotos[i].activeVariableCount = b.activeVariableCount
228 }
229 }
230}
231
232func (f *function) LeaveBlock() {
233 b := f.block

Callers 1

LeaveBlockMethod · 0.95

Calls 2

findLabelMethod · 0.95
PatchCloseMethod · 0.95

Tested by

no test coverage detected