diff trunk/src/dil/Expressions.d @ 396:0a4619735ce9

Applied fixes to Lexer, Parser and other classes. Added asserts to cmd.Generate.syntaxToDoc(). Added if-statements to Declaration, Expression and Statement classes to check for null variables. Fixed octal number scanner in Lexer.scanNumber(). Fixes in Parser: skip comma in parseBaseClasses(); changed || to &&; added 'qword' to list of asm type prefixes.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 21 Sep 2007 12:47:47 +0200
parents 33b566df6af4
children ff1d11c27061
line wrap: on
line diff
--- a/trunk/src/dil/Expressions.d	Wed Sep 19 23:12:20 2007 +0300
+++ b/trunk/src/dil/Expressions.d	Fri Sep 21 12:47:47 2007 +0200
@@ -557,7 +557,11 @@
   {
     super(e);
     mixin(set_kind);
-    this.children ~= [left, right];
+    if (left)
+      this.children ~= left;
+    if (right)
+      this.children ~= right;
+
     this.left = left;
     this.right = right;
   }