[svn] r6469: nemerle/trunk/ncc/parsing/Lexer.n

nazgul svnadmin at nemerle.org
Tue Jul 25 20:30:31 CEST 2006


Log:
Simpler clearing of buffer

Author: nazgul
Date: Tue Jul 25 20:30:29 2006
New Revision: 6469

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

Modified: nemerle/trunk/ncc/parsing/Lexer.n
==============================================================================
--- nemerle/trunk/ncc/parsing/Lexer.n	(original)
+++ nemerle/trunk/ncc/parsing/Lexer.n	Tue Jul 25 20:30:29 2006
@@ -1524,7 +1524,7 @@
     when (comment_store.Length > 0) {
       Message.Warning (this.Location,
                        "documentation comments between literals are ignored");
-      ignore (comment_store.Remove (0, comment_store.Length))
+      comment_store.Length = 0;
     }
   }
  
@@ -1536,7 +1536,7 @@
     if (comment_store.Length > 0) {
       def res = Token.Comment (comment_store.ToString ());
       res.Location = comment_loc;
-      _ = comment_store.Remove (0, comment_store.Length);
+      comment_store.Length = 0;
       res
     }
     else



More information about the svn mailing list