[qooxdoo-commit] SF.net SVN: qooxdoo: [4086] trunk/qooxdoo/frontend/framework/tool/generator /modul
Brought to you by:
ecker,
martinwittemann
From: <wp...@us...> - 2006-08-31 13:32:07
|
Revision: 4086 http://svn.sourceforge.net/qooxdoo/?rev=4086&view=rev Author: wpbasti Date: 2006-08-31 06:31:40 -0700 (Thu, 31 Aug 2006) Log Message: ----------- Fixed empty statements in for-loops Modified Paths: -------------- trunk/qooxdoo/frontend/framework/tool/generator/modules/treecompiler.py Modified: trunk/qooxdoo/frontend/framework/tool/generator/modules/treecompiler.py =================================================================== --- trunk/qooxdoo/frontend/framework/tool/generator/modules/treecompiler.py 2006-08-31 13:15:23 UTC (rev 4085) +++ trunk/qooxdoo/frontend/framework/tool/generator/modules/treecompiler.py 2006-08-31 13:31:40 UTC (rev 4086) @@ -273,6 +273,12 @@ elif child.type == "statement": compString += ")" else: + if child.type == "second" and node.getChild("first", False) == None: + compString += "(" + + if child.type == "third" and node.getChild("first", False) == None and node.getChild("second", False) == None: + compString += "(" + compString += ";" if enableNewLines: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |