flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ftho...@apache.org
Subject [1/9] git commit: [flex-falcon] [refs/heads/add-CollectImportPass] - switch from @expose to @export
Date Tue, 07 Jul 2015 18:18:13 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/add-CollectImportPass af4ae9176 -> c55587ceb (forced update)


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/flexjs/files/controllers/MyController_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/controllers/MyController_result.js
b/compiler.jx.tests/test-files/flexjs/files/controllers/MyController_result.js
index 128b5e6..6fa4967 100644
--- a/compiler.jx.tests/test-files/flexjs/files/controllers/MyController_result.js
+++ b/compiler.jx.tests/test-files/flexjs/files/controllers/MyController_result.js
@@ -129,7 +129,7 @@ controllers_MyController.prototype.comboBoxChangeHandler = function(event)
{
 
 
 /**
- * @expose
+ * @export
  * @param {Object} document
  * @param {string=} id
  */

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/flexjs/files/models/MyModel_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/models/MyModel_result.js b/compiler.jx.tests/test-files/flexjs/files/models/MyModel_result.js
index 6f2c3de..26f369b 100644
--- a/compiler.jx.tests/test-files/flexjs/files/models/MyModel_result.js
+++ b/compiler.jx.tests/test-files/flexjs/files/models/MyModel_result.js
@@ -55,7 +55,7 @@ models_MyModel.prototype._cities = ["London", "Miami", "Paris", "Sydney",
"Tokyo
 
 
 Object.defineProperties(models_MyModel.prototype, /** @lends {models_MyModel.prototype} */
{
-/** @expose */
+/** @export */
 labelText: {
 get: /** @this {models_MyModel} */ function() {
   return this._labelText;
@@ -66,12 +66,12 @@ set: /** @this {models_MyModel} */ function(value) {
     this.dispatchEvent(new org_apache_flex_events_Event("labelTextChanged"));
   }
 }},
-/** @expose */
+/** @export */
 cities: {
 get: /** @this {models_MyModel} */ function() {
   return this._cities;
 }},
-/** @expose */
+/** @export */
 strings: {
 get: /** @this {models_MyModel} */ function() {
   return this._strings;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js b/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js
index a740c06..bfacef0 100644
--- a/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js
+++ b/compiler.jx.tests/test-files/flexjs/projects/interfaces/Test_result.js
@@ -43,7 +43,7 @@ goog.inherits(Test, classes_A);
 
 
 /**
- * @expose
+ * @export
  * @param {interfaces_IC} ic
  * @return {interfaces_IC}
  */

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js
b/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js
index 78e3f86..4508147 100644
--- a/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js
+++ b/compiler.jx.tests/test-files/flexjs/projects/interfaces/interfaces/IE_result.js
@@ -38,4 +38,4 @@ interfaces_IE.prototype.myProp;
  *
  * @type {Object.<string, Array.<Object>>}
  */
-interfaces_IE.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IE', qName: 'interfaces_IE'}]
};
\ No newline at end of file
+interfaces_IE.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IE', qName: 'interfaces_IE'}]
};

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/flexjs/projects/super/Base_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/projects/super/Base_result.js b/compiler.jx.tests/test-files/flexjs/projects/super/Base_result.js
index ddbe449..d4c9341 100644
--- a/compiler.jx.tests/test-files/flexjs/projects/super/Base_result.js
+++ b/compiler.jx.tests/test-files/flexjs/projects/super/Base_result.js
@@ -37,7 +37,7 @@ goog.inherits(Base, Super);
 
 
 Object.defineProperties(Base.prototype, /** @lends {Base.prototype} */ {
-/** @expose */
+/** @export */
 text: {
 get: /** @this {Base} */ function() {
   return "A" + org_apache_flex_utils_Language.superGetter(Base, this, 'text');

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/flexjs/projects/super/Super_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/projects/super/Super_result.js b/compiler.jx.tests/test-files/flexjs/projects/super/Super_result.js
index 9ccdb57..f58d693 100644
--- a/compiler.jx.tests/test-files/flexjs/projects/super/Super_result.js
+++ b/compiler.jx.tests/test-files/flexjs/projects/super/Super_result.js
@@ -38,7 +38,7 @@ Super.prototype._text = '';
 
 
 Object.defineProperties(Super.prototype, /** @lends {Super.prototype} */ {
-/** @expose */
+/** @export */
 text: {
 get: /** @this {Super} */ function() {
   return this._text;
@@ -56,4 +56,4 @@ set: /** @this {Super} */ function(value) {
  *
  * @type {Object.<string, Array.<Object>>}
  */
-Super.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Super', qName: 'Super'}] };
\ No newline at end of file
+Super.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Super', qName: 'Super'}] };

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/goog/files/call-super_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/goog/files/call-super_result.js b/compiler.jx.tests/test-files/goog/files/call-super_result.js
index d877c86..e2bdfc8 100644
--- a/compiler.jx.tests/test-files/goog/files/call-super_result.js
+++ b/compiler.jx.tests/test-files/goog/files/call-super_result.js
@@ -38,4 +38,4 @@ org.apache.flex.A.prototype.hasSuperCall = function(a, b) {
 	org.apache.flex.A.base(this, 'hasSuperCall', a, b, 100);
 	var /** @type {string} */ result = myRegularFunctionCall(-1);
 	return result;
-};
\ No newline at end of file
+};

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/vf2js/files/SimpleMXML_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/files/SimpleMXML_result.js b/compiler.jx.tests/test-files/vf2js/files/SimpleMXML_result.js
index a5f84b7..0beed58 100644
--- a/compiler.jx.tests/test-files/vf2js/files/SimpleMXML_result.js
+++ b/compiler.jx.tests/test-files/vf2js/files/SimpleMXML_result.js
@@ -60,7 +60,7 @@ SimpleMXML.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'SimpleMXML',
qName:
 /**
  * start
  *
- * @expose
+ * @export
  */
 SimpleMXML.prototype.start = function () {
 };

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/vf2js/projects/interfaces/Test_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/projects/interfaces/Test_result.js b/compiler.jx.tests/test-files/vf2js/projects/interfaces/Test_result.js
index 522524e..ca0b28f 100644
--- a/compiler.jx.tests/test-files/vf2js/projects/interfaces/Test_result.js
+++ b/compiler.jx.tests/test-files/vf2js/projects/interfaces/Test_result.js
@@ -43,7 +43,7 @@ goog.inherits(Test, classes.A);
 
 
 /**
- * @expose
+ * @export
  * @param {interfaces.IC} ic
  * @return {interfaces.IC}
  */

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/vf2js/projects/interfaces/classes/A_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/projects/interfaces/classes/A_result.js b/compiler.jx.tests/test-files/vf2js/projects/interfaces/classes/A_result.js
index 5c7fe66..ad6f1a6 100644
--- a/compiler.jx.tests/test-files/vf2js/projects/interfaces/classes/A_result.js
+++ b/compiler.jx.tests/test-files/vf2js/projects/interfaces/classes/A_result.js
@@ -36,7 +36,7 @@ goog.inherits(classes.A, classes.C);
 
 
 /**
- * @expose
+ * @export
  */
 classes.A.prototype.doStuff = function() {
   org_apache_flex_utils_Language.trace("STUFF!!!");

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/vf2js/projects/sdk/SomeSDKClass_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/projects/sdk/SomeSDKClass_result.js b/compiler.jx.tests/test-files/vf2js/projects/sdk/SomeSDKClass_result.js
index 5ce8532..4270158 100644
--- a/compiler.jx.tests/test-files/vf2js/projects/sdk/SomeSDKClass_result.js
+++ b/compiler.jx.tests/test-files/vf2js/projects/sdk/SomeSDKClass_result.js
@@ -45,7 +45,7 @@ SomeSDKClass.prototype.number;
 
 
 /**
- * @expose
+ * @export
  * @return {string}
  */
 SomeSDKClass.prototype.getString = function() {
@@ -54,7 +54,7 @@ SomeSDKClass.prototype.getString = function() {
 
 
 /**
- * @expose
+ * @export
  * @return {string}
  */
 SomeSDKClass.prototype.someFunction = function() {
@@ -90,7 +90,7 @@ goog.inherits(Helper, bases.HelperBaseClass);
 
 
 /**
- * @expose
+ * @export
  * @return {string}
  */
 Helper.helperFunction = function() {
@@ -106,7 +106,7 @@ Helper.prototype.url_;
 
 
 /**
- * @expose
+ * @export
  * @return {string}
  */
 Helper.prototype.get_url = function() {

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/vf2js/projects/sdk/bases/HelperBaseClass_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/projects/sdk/bases/HelperBaseClass_result.js
b/compiler.jx.tests/test-files/vf2js/projects/sdk/bases/HelperBaseClass_result.js
index e8a198a..2460bb0 100644
--- a/compiler.jx.tests/test-files/vf2js/projects/sdk/bases/HelperBaseClass_result.js
+++ b/compiler.jx.tests/test-files/vf2js/projects/sdk/bases/HelperBaseClass_result.js
@@ -30,7 +30,7 @@ bases.HelperBaseClass = function() {};
 
 
 /**
- * @expose
+ * @export
  * @return {string}
  */
 bases.HelperBaseClass.prototype.doSomething = function() {

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/vf2js/projects/simpleMXML/src/SimpleMXML_Project_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/projects/simpleMXML/src/SimpleMXML_Project_result.js
b/compiler.jx.tests/test-files/vf2js/projects/simpleMXML/src/SimpleMXML_Project_result.js
index e34f12d..a190eb6 100644
--- a/compiler.jx.tests/test-files/vf2js/projects/simpleMXML/src/SimpleMXML_Project_result.js
+++ b/compiler.jx.tests/test-files/vf2js/projects/simpleMXML/src/SimpleMXML_Project_result.js
@@ -62,7 +62,7 @@ SimpleMXML_Project.prototype.myComponent;
 /**
  * start
  *
- * @expose
+ * @export
  */
 SimpleMXML_Project.prototype.start = function () {
 };

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/vf2js/projects/super/Base_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/projects/super/Base_result.js b/compiler.jx.tests/test-files/vf2js/projects/super/Base_result.js
index 72c0ab9..5136b64 100644
--- a/compiler.jx.tests/test-files/vf2js/projects/super/Base_result.js
+++ b/compiler.jx.tests/test-files/vf2js/projects/super/Base_result.js
@@ -72,7 +72,7 @@ Base.prototype.newTextAgain;
 
 
 /**
- * @expose
+ * @export
  * @return {string}
  * @override
  */
@@ -82,7 +82,7 @@ Base.prototype.get_text = function() {
 
 
 /**
- * @expose
+ * @export
  * @param {string} value
  * @override
  */
@@ -94,7 +94,7 @@ Base.prototype.set_text = function(value) {
 
 
 /**
- * @expose
+ * @export
  */
 Base.prototype.getNumber = function() {
   alert(this.superClass_.doStuff.call(this));
@@ -103,7 +103,7 @@ Base.prototype.getNumber = function() {
 
 
 /**
- * @expose
+ * @export
  * @return {number}
  * @override
  */

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx.tests/test-files/vf2js/projects/super/Super_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/projects/super/Super_result.js b/compiler.jx.tests/test-files/vf2js/projects/super/Super_result.js
index 0ad1a30..d8bfa78 100644
--- a/compiler.jx.tests/test-files/vf2js/projects/super/Super_result.js
+++ b/compiler.jx.tests/test-files/vf2js/projects/super/Super_result.js
@@ -37,7 +37,7 @@ Super.prototype._text = '';
 
 
 /**
- * @expose
+ * @export
  * @return {string}
  */
 Super.prototype.get_text = function() {
@@ -46,7 +46,7 @@ Super.prototype.get_text = function() {
 
 
 /**
- * @expose
+ * @export
  * @param {string} value
  */
 Super.prototype.set_text = function(value) {
@@ -64,7 +64,7 @@ Super.prototype._x = 5;
 
 
 /**
- * @expose
+ * @export
  * @return {number}
  */
 Super.prototype.get_x = function() {
@@ -73,7 +73,7 @@ Super.prototype.get_x = function() {
 
 
 /**
- * @expose
+ * @export
  * @return {number}
  */
 Super.prototype.doStuff = function() {

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/codegen/js/goog/IJSGoogDocEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/codegen/js/goog/IJSGoogDocEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/codegen/js/goog/IJSGoogDocEmitter.java
index 6903da8..f0c8817 100644
--- a/compiler.jx/src/org/apache/flex/compiler/codegen/js/goog/IJSGoogDocEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/codegen/js/goog/IJSGoogDocEmitter.java
@@ -71,8 +71,8 @@ public interface IJSGoogDocEmitter extends IJSDocEmitter
      *- @enum - Specifies the type of an enum. An enum is an object whose properties constitute
a 
      *        set of related constants. The @enum tag must be followed by a type expression.

      *        
-     * @expose - Declares an exposed property. Exposed properties will not be removed, or
renamed, 
-     *         or collapsed, or optimized in any way by the compiler.
+     * @export - Declares an exported property. Exported properties will have an alias set
up so
+     *        they can be accessed via [] syntax.
      *         
      *- @extends - Marks a class or interface as inheriting from another class. A class marked

      *           with @extends must also be marked with either @constructor or @interface.


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
index e402ac9..18b0c1d 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
@@ -339,7 +339,7 @@ public class JSGoogDocEmitter extends JSDocEmitter implements IJSGoogDocEmitter
     @Override
     public void emitPublic(IASNode node)
     {
-        emitJSDocLine(JSGoogDocEmitterTokens.EXPOSE);
+        emitJSDocLine(JSGoogDocEmitterTokens.EXPORT);
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitterTokens.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitterTokens.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitterTokens.java
index bfff957..9578726 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitterTokens.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitterTokens.java
@@ -22,7 +22,7 @@ import org.apache.flex.compiler.codegen.IEmitterTokens;
 
 public enum JSGoogDocEmitterTokens implements IEmitterTokens
 {
-    PARAM("param"), STAR("*"), TYPE("type"), EXPOSE("expose");
+    PARAM("param"), STAR("*"), TYPE("type"), EXPOSE("expose"), EXPORT("export");
 
     private String token;
 

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/AccessorEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/AccessorEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/AccessorEmitter.java
index d6311f0..f75ce4d 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/AccessorEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/AccessorEmitter.java
@@ -101,7 +101,7 @@ public class AccessorEmitter extends JSSubEmitter implements
                     writeNewline(ASEmitterTokens.COMMA);
 
                 PropertyNodes p = getModel().getPropertyMap().get(propName);
-                writeNewline("/** @expose */");
+                writeNewline("/** @export */");
                 write(propName);
                 write(ASEmitterTokens.COLON);
                 write(ASEmitterTokens.SPACE);
@@ -183,7 +183,7 @@ public class AccessorEmitter extends JSSubEmitter implements
 
                 PropertyNodes p = getModel().getStaticPropertyMap().get(
                         propName);
-                writeNewline("/** @expose */");
+                writeNewline("/** @export */");
                 write(propName);
                 write(ASEmitterTokens.COLON);
                 write(ASEmitterTokens.SPACE);

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BindableEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BindableEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BindableEmitter.java
index d2cd20c..09ae468 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BindableEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/jx/BindableEmitter.java
@@ -78,7 +78,7 @@ public class BindableEmitter extends JSSubEmitter implements
         JSFlexJSEmitter fjs = (JSFlexJSEmitter) getEmitter();
 
         // 'PropName': {
-        writeNewline("/** @expose */");
+        writeNewline("/** @export */");
         writeNewline(name + ASEmitterTokens.COLON.getToken()
                 + ASEmitterTokens.SPACE.getToken()
                 + ASEmitterTokens.BLOCK_OPEN.getToken());

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/vf2js/JSVF2JSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/vf2js/JSVF2JSEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/vf2js/JSVF2JSEmitter.java
index a25f98e..f6133dc 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/vf2js/JSVF2JSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/vf2js/JSVF2JSEmitter.java
@@ -443,7 +443,7 @@ public class JSVF2JSEmitter extends JSGoogEmitter implements IJSVF2JSEmitter
             writeNewline(ASEmitterTokens.SEMICOLON.getToken());
             writeNewline();
             writeNewline("/**");
-            writeNewline("@expose");
+            writeNewline("@export");
             writeNewline(" */");
             writeNewline(parseQualifiedName(definition)
                     + ASEmitterTokens.MEMBER_ACCESS.getToken() + root + "get_"
@@ -464,7 +464,7 @@ public class JSVF2JSEmitter extends JSGoogEmitter implements IJSVF2JSEmitter
                     + ASEmitterTokens.SEMICOLON.getToken());
             writeNewline();
             writeNewline("/**");
-            writeNewline("@expose");
+            writeNewline("@export");
             writeNewline(" */");
             writeNewline(parseQualifiedName(definition)
                     + ASEmitterTokens.MEMBER_ACCESS.getToken() + root + "set_"

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
index 6647000..186bf56 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
@@ -367,7 +367,7 @@ public class MXMLFlexJSEmitter extends MXMLEmitter implements
             root.isTopNode = true;
     
 	        writeNewline("/**");
-	        writeNewline(" * @private");
+	        writeNewline(" * @export");
 	        writeNewline(" * @type {Array}");
 	        writeNewline(" */");
 	        writeNewline("this.mxmlsd = " + ASEmitterTokens.SQUARE_OPEN.getToken());
@@ -478,7 +478,7 @@ public class MXMLFlexJSEmitter extends MXMLEmitter implements
         .getASEmitter();
 
         writeNewline("/**");
-        writeNewline(" * @expose");
+        writeNewline(" * @export");
         writeNewline(" */");
         writeNewline(formatQualifiedName(cname)
                 + ".prototype._bindings = [");
@@ -821,7 +821,7 @@ public class MXMLFlexJSEmitter extends MXMLEmitter implements
         for (MXMLEventSpecifier event : events)
         {
             writeNewline("/**");
-            writeNewline(" * @expose");
+            writeNewline(" * @export");
             writeNewline(" * @param {" + formatQualifiedName(event.type) + "} event");
             writeNewline(" */");
             writeNewline(formatQualifiedName(cname)
@@ -867,7 +867,7 @@ public class MXMLFlexJSEmitter extends MXMLEmitter implements
                     .getToken()))
             {
                 indentPush();
-                writeNewline("/** @expose */");
+                writeNewline("/** @export */");
                 writeNewline(instance.id + ": {");
                 writeNewline("/** @this {" + formattedCName + "} */");
                 indentPush();

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
index 5c2aae0..6e2dfba 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/vf2js/MXMLVF2JSEmitter.java
@@ -370,7 +370,7 @@ public class MXMLVF2JSEmitter extends MXMLEmitter implements
         .getASEmitter();
 
         writeNewline("/**");
-        writeNewline(" * @expose");
+        writeNewline(" * @export");
         writeNewline(" */");
         writeNewline(cname
                 + ".prototype._bindings = [");
@@ -664,7 +664,7 @@ public class MXMLVF2JSEmitter extends MXMLEmitter implements
         for (MXMLEventSpecifier event : events)
         {
             writeNewline("/**");
-            writeNewline(" * @expose");
+            writeNewline(" * @export");
             writeNewline(" * @param {" + event.type + "} event");
             writeNewline(" */");
             writeNewline(cname
@@ -691,7 +691,7 @@ public class MXMLVF2JSEmitter extends MXMLEmitter implements
                     .getToken()))
             {
                 writeNewline("/**");
-                writeNewline(" * @expose");
+                writeNewline(" * @export");
                 writeNewline(" * @return {" + instance.name + "}");
                 writeNewline(" */");
                 writeNewline(cname
@@ -704,7 +704,7 @@ public class MXMLVF2JSEmitter extends MXMLEmitter implements
                 writeNewline();
                 writeNewline();
                 writeNewline("/**");
-                writeNewline(" * @expose");
+                writeNewline(" * @export");
                 writeNewline(" * @param {" + instance.name + "} value");
                 writeNewline(" */");
                 writeNewline(cname
@@ -746,7 +746,7 @@ public class MXMLVF2JSEmitter extends MXMLEmitter implements
             writeNewline("/**");
             writeNewline(" * start");
             writeNewline(" *");
-            writeNewline(" * @expose");
+            writeNewline(" * @export");
             writeNewline(" */");
             writeNewline(cname + ".prototype.start = function () {");
             //writeNewline(root.output(true));

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/5307227d/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
b/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
index b4c7d5e..f77e774 100644
--- a/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
+++ b/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
@@ -173,7 +173,7 @@ public class JSClosureCompilerWrapper
             options_.setCheckMissingReturn(CheckLevel.WARNING);
             options_.setExtractPrototypeMemberDeclarations(true);
             options_.setRemoveUnusedPrototypeProperties(true);
-            options_.setRemoveUnusedPrototypePropertiesInExterns(true);
+            options_.setRemoveUnusedPrototypePropertiesInExterns(false);
             options_.setRemoveUnusedClassProperties(true);
             options_.setRemoveUnusedVars(true);
             options_.setRemoveUnusedLocalVars(true);
@@ -187,6 +187,8 @@ public class JSClosureCompilerWrapper
             options_.setOptimizeReturns(true);
             options_.setOptimizeCalls(true);
             options_.setOptimizeArgumentsArray(true);
+            options_.setGenerateExports(true);
+            options_.setExportLocalPropertyDefinitions(true);
             
             DependencyOptions dopts = new DependencyOptions();
             ArrayList<String> entryPoints = new ArrayList<String>();


Mime
View raw message