()
| 585 | } |
| 586 | |
| 587 | func (fc *funcContext) LeaveBlock() int { |
| 588 | closed := fc.CloseUpvalues() |
| 589 | fc.EndScope() |
| 590 | |
| 591 | if fc.Block.Parent != nil { |
| 592 | fc.ResolveCurrentBlockGotosWithParentBlock() |
| 593 | } |
| 594 | fc.Block = fc.Block.Parent |
| 595 | fc.SetRegTop(fc.Block.LocalVars.LastIndex()) |
| 596 | return closed |
| 597 | } |
| 598 | |
| 599 | func (fc *funcContext) EndScope() { |
| 600 | for _, vr := range fc.Block.LocalVars.List() { |
no test coverage detected