flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/7] git commit: [flex-falcon] [refs/heads/develop] - Also add flash.events.Event as import for [Bindable] classes. Looks like MXMLC used to do that
Date Tue, 17 Sep 2013 19:04:48 GMT
Also add flash.events.Event as import for [Bindable] classes.  Looks like MXMLC used to do
that


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

Branch: refs/heads/develop
Commit: b25d619ca441d246e67b3e7885eecc7e95138190
Parents: b106a74
Author: Alex Harui <aharui@apache.org>
Authored: Mon Sep 16 10:58:59 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Sep 17 12:04:37 2013 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/internal/units/ASCompilationUnit.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b25d619c/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java b/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java
index cb97c0d..19d09a1 100644
--- a/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java
+++ b/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java
@@ -416,7 +416,10 @@ public class ASCompilationUnit extends CompilationUnitBase
                 getProject().clearScopeCacheForCompilationUnit(this);
                 ast.runPostProcess(EnumSet.of(PostProcessStep.POPULATE_SCOPE));
                 if (isBindable)
+                {
+                    pkg.getASScope().addImport("flash.events.Event");
                     pkg.getASScope().addImport("flash.events.EventDispatcher");
+                }
             }
             final ImmutableSet<String> includedFiles = ast.getIncludeHandler().getIncludedFiles();
             addScopeToProjectScope(new ASFileScope[] { ast.getFileScope() });


Mime
View raw message