diff core/src/luan/modules/BasicLuan.java @ 645:859c0dedc8b6

remove LuanSource
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Mar 2016 18:09:51 -0600
parents 53a50c70c5e2
children cdc70de628b5
line wrap: on
line diff
--- a/core/src/luan/modules/BasicLuan.java	Tue Mar 29 13:53:01 2016 -0600
+++ b/core/src/luan/modules/BasicLuan.java	Tue Mar 29 18:09:51 2016 -0600
@@ -13,8 +13,6 @@
 import luan.LuanFunction;
 import luan.LuanJavaFunction;
 import luan.LuanException;
-import luan.LuanSource;
-import luan.LuanElement;
 import luan.LuanMethod;
 import luan.LuanMeta;
 import luan.impl.LuanCompiler;
@@ -32,7 +30,7 @@
 	{
 		if( allowExpr==null )
 			allowExpr = false;
-		return LuanCompiler.compile(luan,new LuanSource(sourceName,text),env,allowExpr);
+		return LuanCompiler.compile(luan,sourceName,text,env,allowExpr);
 	}
 
 	public static LuanFunction load_theme(LuanState luan,String text,String sourceName)
@@ -40,7 +38,7 @@
 	{
 		if( sourceName==null )
 			sourceName = "THEME";
-		return ThemeParser.compile(luan,new LuanSource(sourceName,text));
+		return ThemeParser.compile(luan,sourceName,text);
 	}
 
 	public static LuanFunction load_file(LuanState luan,String fileName,Boolean addExtension) throws LuanException {