Mercurial Hosting > luan
diff core/src/luan/impl/IfStmt.java @ 460:b48cfa14ba60
improve stack trace
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 06 May 2015 14:32:29 -0600 |
parents | 2456ef7ada02 |
children | 4723d22062ce |
line wrap: on
line diff
--- a/core/src/luan/impl/IfStmt.java Wed May 06 12:58:06 2015 -0600 +++ b/core/src/luan/impl/IfStmt.java Wed May 06 14:32:29 2015 -0600 @@ -2,7 +2,7 @@ import luan.Luan; import luan.LuanException; -import luan.LuanSource; +import luan.LuanElement; final class IfStmt extends CodeImpl implements Stmt { @@ -10,15 +10,15 @@ final Stmt thenStmt; final Stmt elseStmt; - IfStmt(LuanSource.Element se,Expr cnd,Stmt thenStmt,Stmt elseStmt) { - super(se); + IfStmt(LuanElement el,Expr cnd,Stmt thenStmt,Stmt elseStmt) { + super(el); this.cnd = cnd; this.thenStmt = thenStmt; this.elseStmt = elseStmt; } @Override public void eval(LuanStateImpl luan) throws LuanException { - if( luan.bit(cnd.se()).checkBoolean( cnd.eval(luan) ) ) { + if( luan.bit(cnd.el()).checkBoolean( cnd.eval(luan) ) ) { thenStmt.eval(luan); } else { elseStmt.eval(luan);