diff sema/Symbol.d @ 158:57b0b4464a0b

Parsing "new", putting it in AST and performs some tests on it. Eg. if the contructor exists and the params matches.
author Anders Johnsen <skabet@gmail.com>
date Tue, 22 Jul 2008 00:33:58 +0200
parents 2be29b296081
children 7982eb63c0eb
line wrap: on
line diff
--- a/sema/Symbol.d	Mon Jul 21 22:14:06 2008 +0200
+++ b/sema/Symbol.d	Tue Jul 22 00:33:58 2008 +0200
@@ -43,12 +43,13 @@
       Try to find a contained symbol with the given name - returns null if not
       found
      **/
-    Symbol findMember(char[] member)
+    Symbol[] findMembers(char[] member)
     {
+        Symbol[] res;
         foreach (possible; actual.contained)
             if (possible.name == member)
-                return possible;
-        return null;
+                res ~= possible;
+        return res;
     }
 
     /**