diff trunk/src/dil/parser/Parser.d @ 675:e7811328e6c7

Made Token.getLocation() a template function and added two aliases.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 18 Jan 2008 18:18:14 +0100
parents 64fec49651cf
children 118971211c4c
line wrap: on
line diff
--- a/trunk/src/dil/parser/Parser.d	Fri Jan 18 17:25:37 2008 +0100
+++ b/trunk/src/dil/parser/Parser.d	Fri Jan 18 18:18:14 2008 +0100
@@ -4128,7 +4128,7 @@
       ++errorCount;
       return;
     }
-    auto location = token.getLocation();
+    auto location = token.getErrorLocation();
     auto msg = Format(_arguments, _argptr, formatMsg);
     auto error = new ParserError(location, msg);
     errors ~= error;