[svn] r6839: nemerle/trunk/ncc/parsing/MainParser.n

VladD2 svnadmin at nemerle.org
Mon Nov 6 17:21:20 CET 2006


Log:
Fix location in call parsing (make_operator_call())

Author: VladD2
Date: Mon Nov  6 17:21:19 2006
New Revision: 6839

Modified:
   nemerle/trunk/ncc/parsing/MainParser.n

Modified: nemerle/trunk/ncc/parsing/MainParser.n
==============================================================================
--- nemerle/trunk/ncc/parsing/MainParser.n	(original)
+++ nemerle/trunk/ncc/parsing/MainParser.n	Mon Nov  6 17:21:19 2006
@@ -1571,7 +1571,7 @@
     make_operator_call (name : string, parms : list [PExpr]) : PExpr
     {
       def head = List.Head (parms);
-      def loc = head.Location;
+      def loc = head.Location + last_tok.Location;
       match (name) {
         | "(" => PExpr.Call (loc, head, List.Tail (parms))
         | "[" => PExpr.Indexer (loc, head, List.Tail (parms))



More information about the svn mailing list