Mercurial Hosting > luan
diff src/luan/LuanSource.java @ 91:1f8b6edc2b08
better error message
git-svn-id: https://luan-java.googlecode.com/svn/trunk@92 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 07 Mar 2013 22:52:53 +0000 |
parents | 54a61d1dc070 |
children |
line wrap: on
line diff
--- a/src/luan/LuanSource.java Sat Mar 02 05:02:56 2013 +0000 +++ b/src/luan/LuanSource.java Thu Mar 07 22:52:53 2013 +0000 @@ -10,6 +10,20 @@ this.text = text; } + public static final class CompilerElement extends LuanElement { + public final LuanSource source; + + public CompilerElement(LuanSource source) { + if( source==null ) + throw new NullPointerException("source is null"); + this.source = source; + } + + @Override String location() { + return "Compiling " + source.name; + } + } + public static final class Element extends LuanElement { public final LuanSource source; public final int start;