diff sema/SymbolTableBuilder.d @ 22:e331e4e816e4

now handling structs to some extend
author johnsen@johnsen-laptop
date Fri, 18 Apr 2008 23:45:45 +0200
parents a51bdf15a33d
children 2d28b21faad6
line wrap: on
line diff
--- a/sema/SymbolTableBuilder.d	Fri Apr 18 21:39:17 2008 +0200
+++ b/sema/SymbolTableBuilder.d	Fri Apr 18 23:45:45 2008 +0200
@@ -62,6 +62,14 @@
         super.visitVarDecl(d);
     }
 
+    override void visitStructDecl(StructDecl s)
+    {
+        auto sc = current();
+        auto sym = sc.add(s.identifier);
+//        sym.type = Tok.Struct;
+        super.visitStructDecl(s);
+    }
+
     override void visitDeclStmt(DeclStmt d)
     {
         super.visitDeclStmt(d);