Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
90:b1e87f1bcc13 | 91:1f8b6edc2b08 |
---|---|
6 public final String text; | 6 public final String text; |
7 | 7 |
8 public LuanSource(String name,String text) { | 8 public LuanSource(String name,String text) { |
9 this.name = name; | 9 this.name = name; |
10 this.text = text; | 10 this.text = text; |
11 } | |
12 | |
13 public static final class CompilerElement extends LuanElement { | |
14 public final LuanSource source; | |
15 | |
16 public CompilerElement(LuanSource source) { | |
17 if( source==null ) | |
18 throw new NullPointerException("source is null"); | |
19 this.source = source; | |
20 } | |
21 | |
22 @Override String location() { | |
23 return "Compiling " + source.name; | |
24 } | |
11 } | 25 } |
12 | 26 |
13 public static final class Element extends LuanElement { | 27 public static final class Element extends LuanElement { |
14 public final LuanSource source; | 28 public final LuanSource source; |
15 public final int start; | 29 public final int start; |