flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [02/50] git commit: [flex-falcon] [refs/heads/master] - flex-compiler-oem: added support for -js-output-type=jsc and -js-output-type=node so that IDEs can use them
Date Wed, 06 Apr 2016 15:02:11 GMT
flex-compiler-oem: added support for -js-output-type=jsc and -js-output-type=node so that IDEs
can use them


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

Branch: refs/heads/master
Commit: dbd0382b1cbbf6c11811b3c97b152a3ba052ae1e
Parents: 18791bd
Author: Josh Tynjala <joshtynjala@apache.org>
Authored: Fri Feb 12 10:08:38 2016 -0800
Committer: Josh Tynjala <joshtynjala@apache.org>
Committed: Fri Feb 12 10:08:38 2016 -0800

----------------------------------------------------------------------
 .../src/org/apache/flex/compiler/clients/MXMLJSC.java        | 2 ++
 flex-compiler-oem/src/flex2/tools/MxmlJSC.java               | 8 ++++++++
 2 files changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/dbd0382b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
index ab89e45..b534f59 100644
--- a/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
+++ b/compiler.jx/src/org/apache/flex/compiler/clients/MXMLJSC.java
@@ -228,6 +228,8 @@ public class MXMLJSC implements JSCompilerEntryPoint, ProblemQueryProvider,
         case VF2JS:
             backend = new MXMLVF2JSBackend();
             break;
+        // if you add a new js-output-type here, don't forget to also add it
+        // to flex2.tools.MxmlJSC in flex-compiler-oem for IDE support
         }
 
         final MXMLJSC mxmlc = new MXMLJSC(backend);

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/dbd0382b/flex-compiler-oem/src/flex2/tools/MxmlJSC.java
----------------------------------------------------------------------
diff --git a/flex-compiler-oem/src/flex2/tools/MxmlJSC.java b/flex-compiler-oem/src/flex2/tools/MxmlJSC.java
index 293c3ea..6aa1e63 100644
--- a/flex-compiler-oem/src/flex2/tools/MxmlJSC.java
+++ b/flex-compiler-oem/src/flex2/tools/MxmlJSC.java
@@ -27,6 +27,8 @@ import org.apache.flex.compiler.driver.IBackend;
 import org.apache.flex.compiler.internal.driver.as.ASBackend;
 import org.apache.flex.compiler.internal.driver.js.amd.AMDBackend;
 import org.apache.flex.compiler.internal.driver.js.goog.GoogBackend;
+import org.apache.flex.compiler.internal.driver.js.jsc.JSCBackend;
+import org.apache.flex.compiler.internal.driver.js.node.NodeBackend;
 import org.apache.flex.compiler.internal.driver.mxml.flexjs.MXMLFlexJSBackend;
 import org.apache.flex.compiler.internal.driver.mxml.vf2js.MXMLVF2JSBackend;
 import org.apache.flex.compiler.problems.ICompilerProblem;
@@ -79,6 +81,12 @@ public class MxmlJSC implements ProblemQueryProvider {
             case VF2JS:
                 backend = new MXMLVF2JSBackend();
                 break;
+            case JSC:
+                backend = new JSCBackend();
+                break;
+            case NODE:
+                backend = new NodeBackend();
+                break;
         }
 
         final List<ICompilerProblem> problems = new ArrayList<ICompilerProblem>();


Mime
View raw message