diff options
author | Jürg Billeter <j@bitron.ch> | 2008-11-10 22:01:51 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-11-10 22:01:51 +0000 |
commit | a86469ccc657e4e4cfe8449c2e4de83206195c24 (patch) | |
tree | 2dbb3390fcdbe96ac800ab9561ae7cb94b1600a9 /vala/valaforeachstatement.vala | |
parent | 67649405484570ae012df33b302e0b708a027b2e (diff) | |
download | vala-a86469ccc657e4e4cfe8449c2e4de83206195c24.tar.gz |
Remove unnecessary accept calls in semantic analyzer
2008-11-10 Jürg Billeter <j@bitron.ch>
* vala/valaaddressofexpression.vala:
* vala/valaarraycreationexpression.vala:
* vala/valaassignment.vala:
* vala/valabinaryexpression.vala:
* vala/valablock.vala:
* vala/valacastexpression.vala:
* vala/valacatchclause.vala:
* vala/valaclass.vala:
* vala/valaconditionalexpression.vala:
* vala/valaconstant.vala:
* vala/valaconstructor.vala:
* vala/valacreationmethod.vala:
* vala/valadeclarationstatement.vala:
* vala/valadelegate.vala:
* vala/valadeletestatement.vala:
* vala/valadestructor.vala:
* vala/valadostatement.vala:
* vala/valaelementaccess.vala:
* vala/valaenum.vala:
* vala/valaenumvalue.vala:
* vala/valaerrorcode.vala:
* vala/valaerrordomain.vala:
* vala/valaexpressionstatement.vala:
* vala/valafield.vala:
* vala/valaforeachstatement.vala:
* vala/valaformalparameter.vala:
* vala/valaforstatement.vala:
* vala/valaifstatement.vala:
* vala/valainitializerlist.vala:
* vala/valainterface.vala:
* vala/valainvocationexpression.vala:
* vala/valalambdaexpression.vala:
* vala/valalocalvariable.vala:
* vala/valalockstatement.vala:
* vala/valamemberaccess.vala:
* vala/valamemberinitializer.vala:
* vala/valamethod.vala:
* vala/valanamespace.vala:
* vala/valaobjectcreationexpression.vala:
* vala/valaparenthesizedexpression.vala:
* vala/valapointerindirection.vala:
* vala/valapostfixexpression.vala:
* vala/valaproperty.vala:
* vala/valapropertyaccessor.vala:
* vala/valareferencetransferexpression.vala:
* vala/valareturnstatement.vala:
* vala/valasemanticanalyzer.vala:
* vala/valasignal.vala:
* vala/valasizeofexpression.vala:
* vala/valasourcefile.vala:
* vala/valastruct.vala:
* vala/valaswitchlabel.vala:
* vala/valaswitchsection.vala:
* vala/valaswitchstatement.vala:
* vala/valathrowstatement.vala:
* vala/valatrystatement.vala:
* vala/valatypecheck.vala:
* vala/valatypeofexpression.vala:
* vala/valaunaryexpression.vala:
* vala/valawhilestatement.vala:
* vala/valayieldstatement.vala:
Remove unnecessary accept calls in semantic analyzer
svn path=/trunk/; revision=2010
Diffstat (limited to 'vala/valaforeachstatement.vala')
-rw-r--r-- | vala/valaforeachstatement.vala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vala/valaforeachstatement.vala b/vala/valaforeachstatement.vala index 2e53d5c7a..949445bfd 100644 --- a/vala/valaforeachstatement.vala +++ b/vala/valaforeachstatement.vala @@ -143,9 +143,7 @@ public class Vala.ForeachStatement : Block { checked = true; // analyze collection expression first, used for type inference - collection.accept (analyzer); - - if (collection.error) { + if (!collection.check (analyzer)) { // ignore inner error error = true; return false; @@ -230,7 +228,7 @@ public class Vala.ForeachStatement : Block { owner = analyzer.current_symbol.scope; analyzer.current_symbol = this; - body.accept (analyzer); + body.check (analyzer); foreach (LocalVariable local in get_local_variables ()) { local.active = false; |