Mercurial > projects > dil
comparison trunk/src/dil/semantic/Pass1.d @ 680:6b3e397229c5
Renamed Statements, Declarations and EnumMember.
Statements -> CompoundStatement.
Declarations -> CompoundDeclaration.
EnumMember -> EnumMemberDeclaration.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 18 Jan 2008 23:59:41 +0100 |
parents | ff6971637f88 |
children | 1ae72234db26 |
comparison
equal
deleted
inserted
replaced
679:ff6971637f88 | 680:6b3e397229c5 |
---|---|
60 modul.infoMan ~= new SemanticError(location, msg); | 60 modul.infoMan ~= new SemanticError(location, msg); |
61 } | 61 } |
62 | 62 |
63 override | 63 override |
64 { | 64 { |
65 Declaration visit(Declarations d) | 65 Declaration visit(CompoundDeclaration d) |
66 { | 66 { |
67 foreach (node; d.children) | 67 foreach (node; d.children) |
68 { | 68 { |
69 assert(node.category == NodeCategory.Declaration, Format("{}", node)); | 69 assert(node.category == NodeCategory.Declaration, Format("{}", node)); |
70 visitD(cast(Declaration)cast(void*)node); | 70 visitD(cast(Declaration)cast(void*)node); |
149 scop.pop(); | 149 scop.pop(); |
150 +/ | 150 +/ |
151 return ed; | 151 return ed; |
152 } | 152 } |
153 | 153 |
154 Declaration visit(EnumMember) | 154 Declaration visit(EnumMemberDeclaration) |
155 { return null; } | 155 { return null; } |
156 | 156 |
157 Declaration visit(ClassDeclaration d) | 157 Declaration visit(ClassDeclaration d) |
158 { | 158 { |
159 if (d.symbol) | 159 if (d.symbol) |