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 2014/09/25 19:24:06 UTC

[6/7] git commit: [flex-falcon] [refs/heads/develop] - Handle interfaces as well as classes

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 <ah...@apache.org>
Authored: Tue Sep 16 23:14:29 2014 -0700
Committer: Alex Harui <ah...@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