()
| 118 | } |
| 119 | |
| 120 | func (f *function) CloseFunction() exprDesc { |
| 121 | e := f.previous.ExpressionToNextRegister(makeExpression(kindRelocatable, f.previous.encodeABx(opClosure, 0, len(f.previous.f.prototypes)-1))) |
| 122 | f.ReturnNone() |
| 123 | f.LeaveBlock() |
| 124 | f.assert(f.block == nil) |
| 125 | f.p.function = f.previous |
| 126 | return e |
| 127 | } |
| 128 | |
| 129 | func (f *function) EnterBlock(isLoop bool) { |
| 130 | // TODO www.lua.org uses a trick here to stack allocate the block, and chain blocks in the stack |
no test coverage detected