This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch improvements/Language
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/improvements/Language by this
push:
new f11f182 code tidy
f11f182 is described below
commit f11f18215f5d4c127b9715bc2f1e19c5a7a88d51
Author: greg-dove <[email protected]>
AuthorDate: Sun May 5 07:39:10 2019 +1200
code tidy
---
.../compiler/internal/codegen/js/jx/FunctionCallEmitter.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FunctionCallEmitter.java
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FunctionCallEmitter.java
index 84e5f84..bb4be2b 100644
---
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FunctionCallEmitter.java
+++
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/FunctionCallEmitter.java
@@ -115,7 +115,7 @@ public class FunctionCallEmitter extends JSSubEmitter
implements ISubEmitter<IFu
{
VectorLiteralNode vectorLiteralNode = (VectorLiteralNode)
node.getChild(1);
String vectorClassName =
(((RoyaleJSProject)fjs.getWalker().getProject()).config.getJsVectorEmulationClass());
- SourceLocation mappingLocation = null;
+ SourceLocation mappingLocation;
if (vectorClassName != null)
{
writeToken(ASEmitterTokens.NEW);
@@ -150,10 +150,7 @@ public class FunctionCallEmitter extends JSSubEmitter
implements ISubEmitter<IFu
mappingLocation.setEndColumn(mappingLocation.getColumn()+1);
startMapping(mappingLocation);
write("[");
-
- /*mappingLocation = new
SourceLocation(vectorLiteralNode.getContentsNode());
-
mappingLocation.setLine(vectorLiteralNode.getContentsNode().getLine());
-
mappingLocation.setColumn(vectorLiteralNode.getContentsNode().getColumn() +
1);*/
+
endMapping(mappingLocation);
ContainerNode contentsNode =
vectorLiteralNode.getContentsNode();
int len = contentsNode.getChildCount();