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

Method FindGotos

code.go:211–219  ·  view source on GitHub ↗
(label int)

Source from the content-addressed store, hash-verified

209}
210
211func (f *function) FindGotos(label int) {
212 for i, l := f.block.firstGoto, f.p.activeLabels[label]; i < len(f.p.pendingGotos); {
213 if f.p.pendingGotos[i].name == l.name {
214 f.closeGoto(i, l)
215 } else {
216 i++
217 }
218 }
219}
220
221func (f *function) moveGotosOut(b block) {
222 for i := b.firstGoto; i < len(f.p.pendingGotos); i += f.findLabel(i) {

Callers 2

breakLabelMethod · 0.95
labelStatementMethod · 0.80

Calls 1

closeGotoMethod · 0.95

Tested by

no test coverage detected