diff trunk/src/Parser.d @ 299:559d5d62e0c1

- Added checks for null before adding member to Node.children. - Added finishConstruction() to FunctionBody.
author aziz
date Thu, 09 Aug 2007 21:39:03 +0000
parents dc8bed242db5
children caef255a2801
line wrap: on
line diff
--- a/trunk/src/Parser.d	Thu Aug 09 19:49:03 2007 +0000
+++ b/trunk/src/Parser.d	Thu Aug 09 21:39:03 2007 +0000
@@ -529,6 +529,7 @@
       break; // exit while loop
     }
     set(func, begin);
+    func.finishConstruction();
     return func;
   }
 
@@ -3579,6 +3580,7 @@
     //         NewArguments Type ( ArgumentList )
     //         NewArguments Type
     auto type = parseType();
+// FIXME: TID.DotList doesn't cover all valid types.
     if (type.tid == TID.DotList && token.type == T.LParen)
     {
       ctorArguments = parseArguments(T.RParen);