diff trunk/src/dil/Lexer.d @ 489:a7291d3ee9d7

Refactored classes that inherit from Node. Added methods addChild(), addOptChild(), addChildren(), addOptChildren() to class Node. Refactored subclasses to use the new methods instead of appending directly to the array Node.children. Moved enums StorageClass and Protection to new module dil.Enums. Added members stc, prot, isStatic() and isPulic() to Declaration.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 03 Dec 2007 22:44:27 +0100
parents bccca748d745
children 47be6bfe39cd
line wrap: on
line diff
--- a/trunk/src/dil/Lexer.d	Sat Dec 01 21:42:24 2007 +0100
+++ b/trunk/src/dil/Lexer.d	Mon Dec 03 22:44:27 2007 +0100
@@ -311,7 +311,7 @@
     This is the old scan method.
     TODO: profile old and new to see which one is faster.
   +/
-  public void scan_(out Token t)
+  public void scan(out Token t)
   in
   {
     assert(text.ptr <= p && p < end);
@@ -771,7 +771,7 @@
     const char[] case_L3 = case_!(str, tok, "Lcommon");
   }
 
-  public void scan(out Token t)
+  public void scan_(out Token t)
   in
   {
     assert(text.ptr <= p && p < end);