changeset 164:ba94fd563548

The symbol for the constructor a "new"-exp is calling is now stored in callSym in NewExp.
author Anders Johnsen <skabet@gmail.com>
date Tue, 22 Jul 2008 16:53:47 +0200
parents 362265427838
children 7606387b2f0a
files ast/Exp.d sema/TypeCheck.d
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ast/Exp.d	Tue Jul 22 16:50:47 2008 +0200
+++ b/ast/Exp.d	Tue Jul 22 16:53:47 2008 +0200
@@ -519,6 +519,7 @@
 
     Exp[] a_args, c_args;
     Identifier newType;
+    Symbol callSym;
 }
 
 class PointerIdentifier : Identifier
--- a/sema/TypeCheck.d	Tue Jul 22 16:50:47 2008 +0200
+++ b/sema/TypeCheck.d	Tue Jul 22 16:53:47 2008 +0200
@@ -190,6 +190,7 @@
                         newArgs ~= arg;
                 }
                 exp.c_args = newArgs;
+                exp.callSym = sel;
             }
             else
             {