You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/10/31 19:52:49 UTC
git commit: [flex-falcon] [refs/heads/develop] - FlexJS doesn't have
these calls
Updated Branches:
refs/heads/develop a5c3a4fee -> 9a3f3d990
FlexJS doesn't have these calls
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/9a3f3d99
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/9a3f3d99
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/9a3f3d99
Branch: refs/heads/develop
Commit: 9a3f3d990bac6bda24d064137da4d2be09d5c268
Parents: a5c3a4f
Author: Alex Harui <ah...@apache.org>
Authored: Thu Oct 31 11:52:41 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Oct 31 11:52:41 2013 -0700
----------------------------------------------------------------------
.../as/codegen/MXMLClassDirectiveProcessor.java | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/9a3f3d99/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java b/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
index a344b32..ac6cb24 100644
--- a/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
+++ b/compiler/src/org/apache/flex/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java
@@ -1192,11 +1192,14 @@ public class MXMLClassDirectiveProcessor extends ClassDirectiveProcessor
FunctionDefinition funcDef = (FunctionDefinition)SemanticUtils.findProperty(classDefinition.getContainedScope(),
"generateMXMLAttributes",
getProject(), false);
- Name funcName = ((FunctionDefinition)funcDef).getMName(getProject());
- ctor_insns.addInstruction(OP_getlocal0);
- ctor_insns.addInstruction(OP_findpropstrict, NAME_MXML_PROPERTIES_GETTER);
- ctor_insns.addInstruction(OP_getproperty, NAME_MXML_PROPERTIES_GETTER);
- ctor_insns.addInstruction(OP_callpropvoid, new Object[] {funcName, 1 });
+ if (funcDef != null)
+ {
+ Name funcName = ((FunctionDefinition)funcDef).getMName(getProject());
+ ctor_insns.addInstruction(OP_getlocal0);
+ ctor_insns.addInstruction(OP_findpropstrict, NAME_MXML_PROPERTIES_GETTER);
+ ctor_insns.addInstruction(OP_getproperty, NAME_MXML_PROPERTIES_GETTER);
+ ctor_insns.addInstruction(OP_callpropvoid, new Object[] {funcName, 1 });
+ }
}
ctor_insns.addInstruction(OP_returnvoid);