Mercurial > projects > dil
comparison trunk/src/dil/SettingsLoader.d @ 683:1ae72234db26
Implemented some methods in SemanticPass1.
Renamed Symbol.ident to name.
Added a constructor to Symbol.
Adapted constructors of classes that inherit from Symbol.
Added Alias and OverloadSet Symbol classes.
Renamed idents and values to names and inits in VariablesDeclaration.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Mon, 21 Jan 2008 17:10:12 +0100 |
parents | 64fec49651cf |
children | 170ddcdc9711 |
comparison
equal
deleted
inserted
replaced
682:7541c64fc423 | 683:1ae72234db26 |
---|---|
28 { | 28 { |
29 auto v = decl.Is!(VariablesDeclaration); | 29 auto v = decl.Is!(VariablesDeclaration); |
30 if (v is null) | 30 if (v is null) |
31 continue; | 31 continue; |
32 | 32 |
33 auto variableName = v.idents[0].str; | 33 auto variableName = v.names[0].str; |
34 auto e = v.values[0]; | 34 auto e = v.inits[0]; |
35 if (!e) | 35 if (!e) |
36 throw new Exception(variableName ~ " variable has no value set."); | 36 throw new Exception(variableName ~ " variable has no value set."); |
37 | 37 |
38 switch (variableName) | 38 switch (variableName) |
39 { | 39 { |
80 { | 80 { |
81 auto v = decl.Is!(VariablesDeclaration); | 81 auto v = decl.Is!(VariablesDeclaration); |
82 if (v is null) | 82 if (v is null) |
83 continue; | 83 continue; |
84 | 84 |
85 auto variableName = v.idents[0].str; | 85 auto variableName = v.names[0].str; |
86 auto e = v.values[0]; | 86 auto e = v.inits[0]; |
87 if (!e) | 87 if (!e) |
88 throw new Exception(variableName~" variable in "~filePath~" has no value set."); | 88 throw new Exception(variableName~" variable in "~filePath~" has no value set."); |
89 | 89 |
90 switch (variableName) | 90 switch (variableName) |
91 { | 91 { |