Mercurial Hosting > luan
diff core/src/luan/impl/WhileStmt.java @ 460:b48cfa14ba60
improve stack trace
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 06 May 2015 14:32:29 -0600 |
parents | 3dcb0f9bee82 |
children | 4723d22062ce |
line wrap: on
line diff
--- a/core/src/luan/impl/WhileStmt.java Wed May 06 12:58:06 2015 -0600 +++ b/core/src/luan/impl/WhileStmt.java Wed May 06 14:32:29 2015 -0600 @@ -2,22 +2,22 @@ import luan.Luan; import luan.LuanException; -import luan.LuanSource; +import luan.LuanElement; final class WhileStmt extends CodeImpl implements Stmt { private final Expr cnd; private final Stmt doStmt; - WhileStmt(LuanSource.Element se,Expr cnd,Stmt doStmt) { - super(se); + WhileStmt(LuanElement el,Expr cnd,Stmt doStmt) { + super(el); this.cnd = cnd; this.doStmt = doStmt; } @Override public void eval(LuanStateImpl luan) throws LuanException { try { - while( luan.bit(se).checkBoolean( cnd.eval(luan) ) ) { + while( luan.bit(el).checkBoolean( cnd.eval(luan) ) ) { doStmt.eval(luan); } } catch(BreakException e) {}