need to handle parens on things other than binary operators

Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/1562c8c4
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/1562c8c4
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/1562c8c4

Branch: refs/heads/develop
Commit: 1562c8c48cb64ac99ed1731c06730a9d6d902dc4
Parents: 4faba4a
Author: Alex Harui <aha...@apache.org>
Authored: Tue Mar 24 22:43:13 2015 -0700
Committer: Alex Harui <aha...@apache.org>
Committed: Tue Mar 24 22:43:13 2015 -0700

----------------------------------------------------------------------
 compiler.jx/src/org/apache/flex/compiler/utils/ASNodeUtils.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1562c8c4/compiler.jx/src/org/apache/flex/compiler/utils/ASNodeUtils.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/utils/ASNodeUtils.java 
b/compiler.jx/src/org/apache/flex/compiler/utils/ASNodeUtils.java
index d847f4a..eb46626 100644
--- a/compiler.jx/src/org/apache/flex/compiler/utils/ASNodeUtils.java
+++ b/compiler.jx/src/org/apache/flex/compiler/utils/ASNodeUtils.java
@@ -27,6 +27,7 @@ import org.apache.flex.compiler.tree.as.IBinaryOperatorNode;
 import org.apache.flex.compiler.tree.as.IBlockNode;
 import org.apache.flex.compiler.tree.as.IConditionalNode;
 import org.apache.flex.compiler.tree.as.IExpressionNode;
+import org.apache.flex.compiler.tree.as.IOperatorNode;
 import org.apache.flex.compiler.tree.as.ISwitchNode;
 import org.apache.flex.compiler.tree.as.ITerminalNode;
 
@@ -72,14 +73,14 @@ public class ASNodeUtils
         return null;
     }
 
-    public static boolean hasParenOpen(IBinaryOperatorNode node)
+    public static boolean hasParenOpen(IOperatorNode node)
     {
         return node.hasParenthesis();
         //return node.getParent() instanceof IBinaryOperatorNode
         //        && !ASNodeUtils.isString(node.getRightOperandNode());
     }
     
-    public static boolean hasParenClose(IBinaryOperatorNode node)
+    public static boolean hasParenClose(IOperatorNode node)
     {
         return node.hasParenthesis();
         //return node.getParent() instanceof IBinaryOperatorNode

Reply via email to