diff src/luan/interp/ReturnStmt.java @ 48:64ecb7a3aad7

rename Lua to Luan git-svn-id: https://luan-java.googlecode.com/svn/trunk@49 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 28 Dec 2012 03:29:12 +0000
parents e3624b7cd603
children 8ede219cd111
line wrap: on
line diff
--- a/src/luan/interp/ReturnStmt.java	Thu Dec 27 04:36:44 2012 +0000
+++ b/src/luan/interp/ReturnStmt.java	Fri Dec 28 03:29:12 2012 +0000
@@ -1,9 +1,9 @@
 package luan.interp;
 
-import luan.Lua;
-import luan.LuaException;
-import luan.LuaFunction;
-import luan.LuaSource;
+import luan.Luan;
+import luan.LuanException;
+import luan.LuanFunction;
+import luan.LuanSource;
 
 
 final class ReturnStmt extends CodeImpl implements Stmt {
@@ -11,7 +11,7 @@
 	private final Expr tailFnExpr;
 	boolean throwReturnException = true;
 
-	ReturnStmt(LuaSource.Element se,Expressions expressions) {
+	ReturnStmt(LuanSource.Element se,Expressions expressions) {
 		super(se);
 		if( expressions instanceof FnCall ) {  // tail call
 			FnCall fnCall = (FnCall)expressions;
@@ -23,12 +23,12 @@
 		}
 	}
 
-	@Override public void eval(LuaStateImpl lua) throws LuaException {
+	@Override public void eval(LuanStateImpl lua) throws LuanException {
 		lua.returnValues = expressions.eval(lua);
 		if( tailFnExpr != null ) {
-			LuaFunction tailFn = lua.checkFunction( se, tailFnExpr.eval(lua) );
-			if( tailFn instanceof LuaClosure ) {
-				lua.tailFn = (LuaClosure)tailFn;
+			LuanFunction tailFn = lua.checkFunction( se, tailFnExpr.eval(lua) );
+			if( tailFn instanceof Closure ) {
+				lua.tailFn = (Closure)tailFn;
 			} else {
 				lua.returnValues =  lua.call(tailFn,tailFnExpr.se(),tailFnExpr.se().text(),lua.returnValues);
 			}