Mercurial > projects > dang
comparison sema/Visitor.d @ 82:06dda301ea61 new_gen
Can declare outside functions and call c-functions
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Fri, 02 May 2008 19:51:58 +0200 |
parents | 110c7e1c4ca2 |
children | 9e90694f5da0 |
comparison
equal
deleted
inserted
replaced
81:110c7e1c4ca2 | 82:06dda301ea61 |
---|---|
93 | 93 |
94 // Declarations: | 94 // Declarations: |
95 DeclT visitVarDecl(VarDecl d) | 95 DeclT visitVarDecl(VarDecl d) |
96 { | 96 { |
97 visitExp(d.varType); | 97 visitExp(d.varType); |
98 visitExp(d.identifier); | 98 if(d.identifier) |
99 visitExp(d.identifier); | |
99 if (d.init) | 100 if (d.init) |
100 visitExp(d.init); | 101 visitExp(d.init); |
101 | 102 |
102 static if (is(DeclT == void)) | 103 static if (is(DeclT == void)) |
103 return; | 104 return; |