flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/7] git commit: [flex-falcon] [refs/heads/develop] - fix metadata in interfaces
Date Thu, 25 Sep 2014 17:24:02 GMT
fix metadata in interfaces


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

Branch: refs/heads/develop
Commit: 1b805c9babb42a6d141cade6790ef87301669a23
Parents: 83dca4b
Author: Alex Harui <aharui@apache.org>
Authored: Tue Sep 16 23:09:44 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Sep 25 10:23:51 2014 -0700

----------------------------------------------------------------------
 .../internal/as/codegen/InterfaceDirectiveProcessor.java    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1b805c9b/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
b/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
index 466e638..59c379b 100644
--- a/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
+++ b/compiler/src/org/apache/flex/compiler/internal/as/codegen/InterfaceDirectiveProcessor.java
@@ -36,6 +36,7 @@ import org.apache.flex.abc.visitors.ITraitsVisitor;
 import static org.apache.flex.abc.ABCConstants.*;
 
 import org.apache.flex.compiler.common.ASModifier;
+import org.apache.flex.compiler.common.IMetaInfo;
 import org.apache.flex.compiler.common.ModifiersSet;
 import org.apache.flex.compiler.constants.INamespaceConstants;
 import org.apache.flex.compiler.definitions.IDefinition;
@@ -307,7 +308,13 @@ public class InterfaceDirectiveProcessor extends DirectiveProcessor
 
         Name funcName = func_def.getMName(project);
 
-        itraits.visitMethodTrait(functionTraitKind(func, TRAIT_Method), funcName, 0, mi);
+        ITraitVisitor tv = itraits.visitMethodTrait(functionTraitKind(func, TRAIT_Method),
funcName, 0, mi);
+        IMetaInfo[] metaTags = func_def.getAllMetaTags();
+        if (metaTags != null && metaTags.length > 0)
+        {
+            interfaceScope.processMetadata(tv, metaTags);
+        }
+        
     }
 
     /**


Mime
View raw message