flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [1/6] git commit: [flex-falcon] [refs/heads/develop] - Add preliminary 'Metadata' handling (no actual implementation yet)
Date Thu, 07 Aug 2014 10:50:03 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop b79ede7c9 -> 21d65f32c


Add preliminary 'Metadata' handling (no actual implementation yet)

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: 120460b9701eace42f1b4a88f4af01b6fc6ccae9
Parents: b79ede7
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Thu Aug 7 11:25:10 2014 +0200
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Thu Aug 7 11:25:10 2014 +0200

----------------------------------------------------------------------
 .../apache/flex/compiler/codegen/mxml/IMXMLEmitter.java  |  5 +++++
 .../compiler/internal/codegen/mxml/MXMLBlockWalker.java  | 11 +++++++++++
 .../flex/compiler/internal/codegen/mxml/MXMLEmitter.java |  7 +++++++
 .../compiler/internal/visitor/mxml/MXMLNodeSwitch.java   |  5 ++++-
 .../flex/compiler/visitor/mxml/IMXMLBlockVisitor.java    |  5 +++++
 5 files changed, 32 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/120460b9/compiler.jx/src/org/apache/flex/compiler/codegen/mxml/IMXMLEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/codegen/mxml/IMXMLEmitter.java b/compiler.jx/src/org/apache/flex/compiler/codegen/mxml/IMXMLEmitter.java
index 28c23b8..91fa27d 100644
--- a/compiler.jx/src/org/apache/flex/compiler/codegen/mxml/IMXMLEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/codegen/mxml/IMXMLEmitter.java
@@ -32,6 +32,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLMetadataNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLNumberNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLPropertySpecifierNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLScriptNode;
@@ -104,4 +105,8 @@ public interface IMXMLEmitter extends IEmitter
 
     void emitComponent(IMXMLComponentNode node);
 
+    //--------------------------------------------------------------------------
+
+    void emitMetadata(IMXMLMetadataNode node);
+
 }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/120460b9/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLBlockWalker.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLBlockWalker.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLBlockWalker.java
index 487579c..de43614 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLBlockWalker.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLBlockWalker.java
@@ -43,6 +43,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLMetadataNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLNumberNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLPropertySpecifierNode;
@@ -363,6 +364,16 @@ public class MXMLBlockWalker implements IMXMLBlockVisitor, IMXMLBlockWalker
     }
 
     //--------------------------------------------------------------------------
+    
+    @Override
+    public void visitMetadata(IMXMLMetadataNode node)
+    {
+        debug("visitMetadata()");
+        
+        mxmlEmitter.emitMetadata(node);
+    }
+    
+    //--------------------------------------------------------------------------
 
     protected void debug(String message)
     {

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/120460b9/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLEmitter.java
index bb1e016..907f5de 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLEmitter.java
@@ -40,6 +40,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLMetadataNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLNumberNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLPropertySpecifierNode;
@@ -358,4 +359,10 @@ public class MXMLEmitter extends Emitter implements IMXMLEmitter
 
         write("</fx:Component>");
     }
+
+    public void emitMetadata(IMXMLMetadataNode node)
+    {
+        // ToDo (erikdebruin): implement metadata output
+    }
+    
 }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/120460b9/compiler.jx/src/org/apache/flex/compiler/internal/visitor/mxml/MXMLNodeSwitch.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/visitor/mxml/MXMLNodeSwitch.java
b/compiler.jx/src/org/apache/flex/compiler/internal/visitor/mxml/MXMLNodeSwitch.java
index a84f4da..4d11230 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/visitor/mxml/MXMLNodeSwitch.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/visitor/mxml/MXMLNodeSwitch.java
@@ -32,6 +32,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLMetadataNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLNumberNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLPropertySpecifierNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLScriptNode;
@@ -121,6 +122,9 @@ public class MXMLNodeSwitch implements IASNodeStrategy
         case MXMLComponentID:
             visitor.visitComponent((IMXMLComponentNode) node);
             break;
+        case MXMLMetadataID:
+            visitor.visitMetadata((IMXMLMetadataNode) node);
+            break;
             
         case MXMLApplicationID:
         case MXMLBindingID:
@@ -140,7 +144,6 @@ public class MXMLNodeSwitch implements IASNodeStrategy
         case MXMLHTTPServiceRequestID:
         case MXMLImplementsID:
         case MXMLLibraryID:
-        case MXMLMetadataID:
         case MXMLModelID:
         case MXMLModelPropertyID:
         case MXMLModelRootID:

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/120460b9/compiler.jx/src/org/apache/flex/compiler/visitor/mxml/IMXMLBlockVisitor.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/visitor/mxml/IMXMLBlockVisitor.java
b/compiler.jx/src/org/apache/flex/compiler/visitor/mxml/IMXMLBlockVisitor.java
index 6b10cd7..5ec0408 100644
--- a/compiler.jx/src/org/apache/flex/compiler/visitor/mxml/IMXMLBlockVisitor.java
+++ b/compiler.jx/src/org/apache/flex/compiler/visitor/mxml/IMXMLBlockVisitor.java
@@ -32,6 +32,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLMetadataNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLNumberNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLPropertySpecifierNode;
 import org.apache.flex.compiler.tree.mxml.IMXMLScriptNode;
@@ -101,4 +102,8 @@ public interface IMXMLBlockVisitor extends IBlockVisitor
 
     void visitComponent(IMXMLComponentNode node);
     
+    //--------------------------------------------------------------------------
+
+    void visitMetadata(IMXMLMetadataNode node);
+
 }


Mime
View raw message