You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jo...@apache.org on 2014/02/28 10:48:11 UTC

[14/50] git commit: [flex-falcon] [refs/heads/maven] - If a variable is of type Class, emit JSDoc for Object instead

If a variable is of type Class, emit JSDoc for Object instead


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

Branch: refs/heads/maven
Commit: 30fd603a26729d678d5404888d8be0fb4053b93c
Parents: a9269fb
Author: Alex Harui <ah...@apache.org>
Authored: Wed Dec 4 22:07:17 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Dec 4 22:07:17 2013 -0800

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/30fd603a/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 8c8212a..915265a 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
@@ -454,6 +454,8 @@ public class JSGoogDocEmitter extends JSDocEmitter implements IJSGoogDocEmitter
 
         if (name.equals(""))
             result = ASEmitterTokens.ANY_TYPE.getToken();
+        else if (name.equals(IASLanguageConstants.Class))
+            result = IASLanguageConstants.Object;
         else if (name.equals(IASLanguageConstants.Boolean)
                 || name.equals(IASLanguageConstants.String)
                 || name.equals(IASLanguageConstants.Number))