flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adufi...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - fixed incorrect indentation in local function output
Date Wed, 13 Jan 2016 06:04:41 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 3be965da1 -> d71c431cf


fixed incorrect indentation in local function output


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

Branch: refs/heads/develop
Commit: d71c431cfc6f1825e723e32fda9ea3038724232d
Parents: 3be965d
Author: Andy Dufilie <adufilie@apache.org>
Authored: Mon Jan 11 22:11:56 2016 -0500
Committer: Andy Dufilie <adufilie@apache.org>
Committed: Tue Jan 12 23:55:18 2016 -0500

----------------------------------------------------------------------
 .../internal/codegen/js/flexjs/TestFlexJSExpressions.java    | 8 ++++----
 .../internal/codegen/js/flexjs/TestFlexJSStatements.java     | 2 +-
 .../compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d71c431c/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
index 61c4e8d..90241b2 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSExpressions.java
@@ -782,7 +782,7 @@ public class TestFlexJSExpressions extends TestGoogExpressions
         asBlockWalker.visitFunction(node);
         assertOut("FalconTest_A.prototype.falconTest_a = function() {\n" +
         		  "  var self = this;\n" +
-        		  "    var /** @type {Function} */ __localFn0__ = function() {\n" +
+        		  "  var /** @type {Function} */ __localFn0__ = function() {\n" +
         		  "  }\n" +
         		  "  var /** @type {*} */ a = __localFn0__;\n" +
         		  "}");
@@ -798,7 +798,7 @@ public class TestFlexJSExpressions extends TestGoogExpressions
         asBlockWalker.visitFunction(node);
         assertOut("FalconTest_A.prototype.falconTest_a = function() {\n" +
       		  "  var self = this;\n" +
-      		  "    var /** @type {Function} */ __localFn0__ = function(foo, bar) {\n" +
+      		  "  var /** @type {Function} */ __localFn0__ = function(foo, bar) {\n" +
       		  "    bar = typeof bar !== 'undefined' ? bar : 'goo';\n" +
       		  "    return -1;\n" +
       		  "  }\n" +
@@ -816,7 +816,7 @@ public class TestFlexJSExpressions extends TestGoogExpressions
         asBlockWalker.visitFunction(node);
         assertOut("FalconTest_A.prototype.falconTest_a = function() {\n" +
       		  "  var self = this;\n" +
-      		  "    var /** @type {Function} */ __localFn0__ = function(event) {\n" +
+      		  "  var /** @type {Function} */ __localFn0__ = function(event) {\n" +
       		  "    doit();\n" +
       		  "  }\n" +
       		  "  addListener('foo', __localFn0__);\n" +
@@ -832,7 +832,7 @@ public class TestFlexJSExpressions extends TestGoogExpressions
         asBlockWalker.visitFunction(node);
         assertOut("FalconTest_A.prototype.falconTest_a = function() {\n" +
         		  "  var self = this;\n" +
-        		  "    var /** @type {Function} */ __localFn0__ = function(foo) {\n    foo.bar
= 10;\n  }\n" +
+        		  "  var /** @type {Function} */ __localFn0__ = function(foo) {\n    foo.bar =
10;\n  }\n" +
         		  "  var /** @type {Object} */ a = {};\n" +
         		  "  var /** @type {Function} */ b = __localFn0__;\n" +
         		  "  var /** @type {Object} */ c = b(a);\n}");

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d71c431c/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
index b7b3158..d2ba448 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSStatements.java
@@ -484,7 +484,7 @@ public class TestFlexJSStatements extends TestGoogStatements
         		              "};\n\n\n" +
         		              "FalconTest_A.prototype.falconTest_a = function() {\n" +
         		              "  var self = this;\n" +
-        		              "    var /** @type {Function} */ __localFn0__ = function(foo, bar)
{\n" +
+        		              "  var /** @type {Function} */ __localFn0__ = function(foo, bar)
{\n" +
             		          "    bar = typeof bar !== 'undefined' ? bar : 'goo';\n" +
             		          "    return -1;\n" +
             		          "  }\n" +

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d71c431c/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
index d835c9c..558d0ba 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
@@ -269,7 +269,7 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
                 IFunctionNode anonFn = anonFns.get(i);
                 if (anonFn.getParent().getNodeID() == ASTNodeID.AnonymousFunctionID)
                 {
-                    write("  var /** @type {Function} */ __localFn" + Integer.toString(i)
+ "__ = ");
+                    write("var /** @type {Function} */ __localFn" + Integer.toString(i) +
"__ = ");
                 	getWalker().walk(anonFn.getParent());
                 }
                 else


Mime
View raw message