You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/03/29 19:56:53 UTC
[3/5] git commit: [FalconJx] raised visibility and handled exception
[FalconJx] raised visibility and handled exception
Since we're subclassing the JSGoogEmitter for FlexJS output, the visibility of these methods needed to be raised.
A possible null pointer exception is now handled.
Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/414bf811
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/414bf811
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/414bf811
Branch: refs/heads/develop
Commit: 414bf811255f7a066f52791fe43ef0a1928f141d
Parents: 5314f8d
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Fri Mar 29 19:45:43 2013 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Mar 29 19:45:43 2013 +0100
----------------------------------------------------------------------
.../internal/codegen/js/goog/JSGoogEmitter.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/414bf811/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
index c29fef5..984bb3d 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogEmitter.java
@@ -86,7 +86,7 @@ public class JSGoogEmitter extends JSEmitter implements IJSGoogEmitter
private List<String> propertyNames = new ArrayList<String>();
- IJSGoogDocEmitter getDoc()
+ protected IJSGoogDocEmitter getDoc()
{
return (IJSGoogDocEmitter) getDocEmitter();
}
@@ -859,11 +859,11 @@ public class JSGoogEmitter extends JSEmitter implements IJSGoogEmitter
return (ITypeDefinition) tnode.getDefinition();
}
- private static IClassDefinition getClassDefinition(IDefinitionNode node)
+ protected static IClassDefinition getClassDefinition(IDefinitionNode node)
{
IClassNode tnode = (IClassNode) node
.getAncestorOfType(IClassNode.class);
- return tnode.getDefinition();
+ return (tnode != null) ? tnode.getDefinition() : null;
}
private static IClassDefinition getSuperClassDefinition(