Mercurial Hosting > luan
diff core/src/luan/LuanElement.java @ 481:5d4a78c93383
luan errors are now tables
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 May 2015 20:26:36 -0600 |
parents | b48cfa14ba60 |
children |
line wrap: on
line diff
--- a/core/src/luan/LuanElement.java Mon May 11 16:43:04 2015 -0600 +++ b/core/src/luan/LuanElement.java Mon May 11 20:26:36 2015 -0600 @@ -27,11 +27,7 @@ return text!=null ? text : source.text.substring(start,end); } - private String location() { - return source.name + " line " + lineNumber(); - } - - private int lineNumber() { + int lineNumber() { int line = 0; int i = -1; do { @@ -41,11 +37,4 @@ return line; } - String toString(String fnName) { - String s = location(); - if( fnName != null ) - s += " in call to '" + fnName + "'"; - return s; - } - }