Repository: flex-falcon Updated Branches: refs/heads/develop b3bf4b544 -> 1f72b5451
Fixed double comment emit with NullConstructorReference. Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/6a4b3a8d Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/6a4b3a8d Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/6a4b3a8d Branch: refs/heads/develop Commit: 6a4b3a8d88aa4083f1b72c6c04d883d100e599b4 Parents: b3bf4b5 Author: Michael Schmalle <[email protected]> Authored: Sat Jun 13 16:24:47 2015 -0400 Committer: Michael Schmalle <[email protected]> Committed: Sat Jun 13 17:56:15 2015 -0400 ---------------------------------------------------------------------- .../reference/NullConstructorReference.java | 2 -- .../externals/reference/ReferenceModel.java | 23 ++------------------ 2 files changed, 2 insertions(+), 23 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/6a4b3a8d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/NullConstructorReference.java ---------------------------------------------------------------------- diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/NullConstructorReference.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/NullConstructorReference.java index 80c1369..f1caf7a 100644 --- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/NullConstructorReference.java +++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/NullConstructorReference.java @@ -35,8 +35,6 @@ public class NullConstructorReference extends MethodReference @Override protected void emitFunctionCommentBody(StringBuilder sb) { - super.emitFunctionCommentBody(sb); - emitBlockDescription(sb); emitSee(sb); emitSeeSourceFileName(sb); http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/6a4b3a8d/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java ---------------------------------------------------------------------- diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java index 9d44d21..9e4aa1c 100644 --- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java +++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/reference/ReferenceModel.java @@ -98,25 +98,6 @@ public class ReferenceModel return classes.get(qName); } - public ClassReference findClassReference(String qName) - { - ClassReference reference = classes.get(qName); - if (reference != null) - return reference; - reference = possibleClasses.get(qName); - if (reference != null) - { - err(">>>> {ReferenceModel} Found class [" - + qName - + "] in possible classes from namespace, promoting to class in " - + reference.getNode().getSourceFileName()); - possibleClasses.remove(qName); - classes.put(qName, reference); - return reference; - } - return null; - } - public void addNamespace(Node node, String qName) { if (namespaces.contains(qName)) @@ -262,7 +243,7 @@ public class ReferenceModel public void addStaticField(Node node, String className, String memberName) { - ClassReference classReference = findClassReference(className); + ClassReference classReference = getClassReference(className); // XXX this is here because for now, the doc might be on the parent ASSIGN node // if it's a static property with a value JSDocInfo comment = NodeUtil.getBestJSDocInfo(node); @@ -287,7 +268,7 @@ public class ReferenceModel public void addStaticMethod(Node node, String className, String memberName) { - ClassReference classReference = findClassReference(className); + ClassReference classReference = getClassReference(className); // XXX this is here because for now, the doc might be on the parent ASSIGN node // if it's a static property with a value JSDocInfo comment = NodeUtil.getBestJSDocInfo(node);
