flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [6/7] git commit: [flex-falcon] [refs/heads/develop] - Handle interfaces as well as classes
Date Thu, 25 Sep 2014 17:24:06 GMT
Handle interfaces as well as classes


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

Branch: refs/heads/develop
Commit: 21ba15e83a5954473d5043a63c564745397db99f
Parents: 4722755
Author: Alex Harui <aharui@apache.org>
Authored: Tue Sep 16 23:14:29 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Sep 25 10:23:52 2014 -0700

----------------------------------------------------------------------
 .../compiler/internal/codegen/databinding/WatcherAnalyzer.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/21ba15e8/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/WatcherAnalyzer.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/WatcherAnalyzer.java
b/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/WatcherAnalyzer.java
index 6c3886b..c4316c1 100644
--- a/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/WatcherAnalyzer.java
+++ b/compiler/src/org/apache/flex/compiler/internal/codegen/databinding/WatcherAnalyzer.java
@@ -27,6 +27,7 @@ import org.apache.flex.compiler.definitions.IClassDefinition;
 import org.apache.flex.compiler.definitions.IConstantDefinition;
 import org.apache.flex.compiler.definitions.IDefinition;
 import org.apache.flex.compiler.definitions.IFunctionDefinition;
+import org.apache.flex.compiler.definitions.IInterfaceDefinition;
 import org.apache.flex.compiler.definitions.ITypeDefinition;
 import org.apache.flex.compiler.definitions.IVariableDefinition;
 import org.apache.flex.compiler.internal.codegen.databinding.WatcherInfoBase.WatcherType;
@@ -305,7 +306,7 @@ public class WatcherAnalyzer
             // we are a not a dynamic property
             
             // Check to see if we are a cast. If so, we can ignore
-            if (def instanceof IClassDefinition)
+            if (def instanceof IClassDefinition || def instanceof IInterfaceDefinition)
             {
                 // we are an identifier that resolves to a class. perhaps we are a cast?
                 // we are a case if the node parent is a function call, but in any case


Mime
View raw message