Mercurial > projects > dil
comparison trunk/src/cmd/Generate.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 | 95a3c28c0f64 |
comparison
equal
deleted
inserted
replaced
679:ff6971637f88 | 680:6b3e397229c5 |
---|---|
95 uint suffixLength; | 95 uint suffixLength; |
96 switch (node.category) | 96 switch (node.category) |
97 { | 97 { |
98 alias NodeCategory NC; | 98 alias NodeCategory NC; |
99 case NC.Declaration: | 99 case NC.Declaration: |
100 if (node.kind == NodeKind.Declarations || | |
101 node.kind == NodeKind.EnumMember) | |
102 break; | |
103 suffixLength = "Declaration".length; | 100 suffixLength = "Declaration".length; |
104 break; | 101 break; |
105 case NC.Statement: | 102 case NC.Statement: |
106 switch (node.kind) | 103 switch (node.kind) |
107 { | 104 { |
108 case NodeKind.Statements, | 105 case NodeKind.CatchBody, |
109 NodeKind.CatchBody, | |
110 NodeKind.FinallyBody, | 106 NodeKind.FinallyBody, |
111 NodeKind.FunctionBody, | 107 NodeKind.FunctionBody, |
112 NodeKind.AsmInstruction, | 108 NodeKind.AsmInstruction, |
113 NodeKind.IllegalAsmInstruction: | 109 NodeKind.IllegalAsmInstruction: |
114 break; | 110 break; |