flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/2] git commit: [flex-falcon] [refs/heads/develop] - fix error reporting in FunctionCallNodes
Date Wed, 01 Jun 2016 04:20:54 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 0461e3917 -> b158ecb1d


fix error reporting in FunctionCallNodes


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

Branch: refs/heads/develop
Commit: 79101ec4227641a3d01e5b096dad84aba98afd6a
Parents: 0461e39
Author: Alex Harui <aharui@apache.org>
Authored: Tue May 31 10:54:49 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue May 31 15:49:15 2016 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/internal/tree/as/FunctionCallNode.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/79101ec4/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/FunctionCallNode.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/FunctionCallNode.java
b/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/FunctionCallNode.java
index 45b2a07..0ee6fad 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/FunctionCallNode.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/tree/as/FunctionCallNode.java
@@ -54,6 +54,7 @@ public class FunctionCallNode extends ExpressionNodeBase implements IFunctionCal
         newKeywordNode = new KeywordNode(keywordNew);
         this.nameNode = nameNode;
         argumentsNode = new ContainerNode(2);
+        setSourceLocation(nameNode);
     }
 
     /**
@@ -64,6 +65,7 @@ public class FunctionCallNode extends ExpressionNodeBase implements IFunctionCal
         newKeywordNode = null;
         this.nameNode = nameNode;
         argumentsNode = new ContainerNode(2);
+        setSourceLocation(nameNode);
     }
 
     /**


Mime
View raw message