Author: ptw
Date: 2007-12-21 13:10:12 -0800 (Fri, 21 Dec 2007)
New Revision: 7659
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
Log:
Change 20071221-ptw-8 by [EMAIL PROTECTED] on 2007-12-21 16:09:23 EST
in /Users/ptw/OpenLaszlo/devildog
for http://svn.openlaszlo.org/openlaszlo/branches/devildog
Summary: Part 2 of pass super calls through on swf9
Technical Reviewer: don (pending)
QA Reviewer: henry (pending)
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
===================================================================
---
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
2007-12-21 21:06:31 UTC (rev 7658)
+++
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/ParseTreePrinter.java
2007-12-21 21:10:12 UTC (rev 7659)
@@ -420,7 +420,10 @@
}
public String visitSuperCallExpression(SimpleNode node, String[] children) {
// Same as above
- return "super" + ("".equals(children[0])?"":("." + children[0])) +
("".equals(children[1])?"":("." + children[1])) + "(" + children[2] + ")";
+ return "super" +
+ (node.get(0) instanceof ASTEmptyExpression?"":("." + children[0])) +
+ (node.get(1) instanceof ASTEmptyExpression?"":("." + children[1])) +
+ "(" + children[2] + ")";
}
public String visitConditionalExpression(SimpleNode node, String[] children)
{
int thisPrec = prec(Ops.COLON, false);
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins