(block *codeBlock, gotoLabel *gotoLabelDesc, i int)
| 465 | } |
| 466 | |
| 467 | func (fc *funcContext) FindLabel(block *codeBlock, gotoLabel *gotoLabelDesc, i int) bool { |
| 468 | target := block.GetLabel(gotoLabel.Name) |
| 469 | if target != nil { |
| 470 | if gotoLabel.NumActiveLocalVars > target.NumActiveLocalVars && block.RefUpvalue { |
| 471 | fc.Code.SetA(gotoLabel.Pc-1, target.NumActiveLocalVars) |
| 472 | } |
| 473 | fc.ResolveGoto(gotoLabel, target, i) |
| 474 | return true |
| 475 | } |
| 476 | return false |
| 477 | } |
| 478 | |
| 479 | func (fc *funcContext) ResolveCurrentBlockGotosWithParentBlock() { |
| 480 | blockActiveLocalVars := fc.Block.Parent.LocalVarsCount() |
no test coverage detected