Mercurial > projects > dang
diff sema/Visitor.d @ 63:9f8131676242 new_gen
Now Decl's have a DType type(), and should use varType and returnType to get the old type id
author | Anders Halager <halager@gmail.com> |
---|---|
date | Tue, 29 Apr 2008 15:13:38 +0200 |
parents | 79cb0afafabe |
children | 381975d76baf |
line wrap: on
line diff
--- a/sema/Visitor.d Tue Apr 29 15:00:11 2008 +0200 +++ b/sema/Visitor.d Tue Apr 29 15:13:38 2008 +0200 @@ -86,7 +86,7 @@ // Declarations: DeclT visitVarDecl(VarDecl d) { - visitExp(d.type); + visitExp(d.varType); visitExp(d.identifier); if (d.init) visitExp(d.init); @@ -99,7 +99,7 @@ DeclT visitFuncDecl(FuncDecl f) { - visitExp(f.type); + visitExp(f.returnType); visitExp(f.identifier); foreach (arg; f.funcArgs) visitDecl(arg);