}}}
(context *funcContext, reg *int, expr ast.Expr, cnst LValue)
| 1731 | } // }}} |
| 1732 | |
| 1733 | func loadRk(context *funcContext, reg *int, expr ast.Expr, cnst LValue) int { // {{{ |
| 1734 | cindex := context.ConstIndex(cnst) |
| 1735 | if cindex <= opMaxIndexRk { |
| 1736 | return opRkAsk(cindex) |
| 1737 | } else { |
| 1738 | ret := *reg |
| 1739 | *reg++ |
| 1740 | context.Code.AddABx(OP_LOADK, ret, cindex, sline(expr)) |
| 1741 | return ret |
| 1742 | } |
| 1743 | } // }}} |
| 1744 | |
| 1745 | func getIdentRefType(context *funcContext, current *funcContext, expr *ast.IdentExpr) expContextType { // {{{ |
| 1746 | if current == nil { |
no test coverage detected
searching dependent graphs…