()
| 576 | } |
| 577 | |
| 578 | func (fc *funcContext) CloseUpvalues() int { |
| 579 | n := -1 |
| 580 | if fc.Block.RefUpvalue { |
| 581 | n = fc.Block.Parent.LocalVars.LastIndex() |
| 582 | fc.Code.AddABC(OP_CLOSE, n, 0, 0, fc.Block.LastLine) |
| 583 | } |
| 584 | return n |
| 585 | } |
| 586 | |
| 587 | func (fc *funcContext) LeaveBlock() int { |
| 588 | closed := fc.CloseUpvalues() |
no test coverage detected