You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/08/07 12:50:06 UTC
[4/6] git commit: [flex-falcon] [refs/heads/develop] - Add
preliminary 'Implements' handling (no actual implementation yet)
Add preliminary 'Implements' handling (no actual implementation yet)
Signed-off-by: Erik de Bruin <er...@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/1e5d5d4f
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/1e5d5d4f
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/1e5d5d4f
Branch: refs/heads/develop
Commit: 1e5d5d4fce190824ab3fc2484d74574dff4faacd
Parents: d48ab44
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Thu Aug 7 11:45:09 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Thu Aug 7 11:45:09 2014 +0200
----------------------------------------------------------------------
.../apache/flex/compiler/codegen/mxml/IMXMLEmitter.java | 5 +++++
.../compiler/internal/codegen/mxml/MXMLBlockWalker.java | 11 +++++++++++
.../flex/compiler/internal/codegen/mxml/MXMLEmitter.java | 6 ++++++
.../compiler/internal/visitor/mxml/MXMLNodeSwitch.java | 5 ++++-
.../flex/compiler/visitor/mxml/IMXMLBlockVisitor.java | 5 +++++
5 files changed, 31 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1e5d5d4f/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 c652b0d..4e83160 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
@@ -30,6 +30,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLEmbedNode;
import org.apache.flex.compiler.tree.mxml.IMXMLEventSpecifierNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFactoryNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLImplementsNode;
import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
@@ -113,5 +114,9 @@ public interface IMXMLEmitter extends IEmitter
//--------------------------------------------------------------------------
void emitEmbed(IMXMLEmbedNode node);
+
+ //--------------------------------------------------------------------------
+
+ void emitImplements(IMXMLImplementsNode node);
}
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1e5d5d4f/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 2de69b5..e05fc28 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
@@ -41,6 +41,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLEmbedNode;
import org.apache.flex.compiler.tree.mxml.IMXMLEventSpecifierNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFactoryNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLImplementsNode;
import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
@@ -385,6 +386,16 @@ public class MXMLBlockWalker implements IMXMLBlockVisitor, IMXMLBlockWalker
}
//--------------------------------------------------------------------------
+
+ @Override
+ public void visitImplements(IMXMLImplementsNode node)
+ {
+ debug("visitImplements()");
+
+ mxmlEmitter.emitImplements(node);
+ }
+
+ //--------------------------------------------------------------------------
protected void debug(String message)
{
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1e5d5d4f/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 56a5f32..697224a 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
@@ -38,6 +38,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLEmbedNode;
import org.apache.flex.compiler.tree.mxml.IMXMLEventSpecifierNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFactoryNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLImplementsNode;
import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
@@ -371,4 +372,9 @@ public class MXMLEmitter extends Emitter implements IMXMLEmitter
// ToDo (erikdebruin): implement embed output
}
+ public void emitImplements(IMXMLImplementsNode node)
+ {
+ // ToDo (erikdebruin): implement implements output
+ }
+
}
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1e5d5d4f/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 c86dd5a..ea220d9 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
@@ -30,6 +30,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLEmbedNode;
import org.apache.flex.compiler.tree.mxml.IMXMLEventSpecifierNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFactoryNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLImplementsNode;
import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
@@ -129,6 +130,9 @@ public class MXMLNodeSwitch implements IASNodeStrategy
case MXMLEmbedID:
visitor.visitEmbed((IMXMLEmbedNode) node);
break;
+ case MXMLImplementsID:
+ visitor.visitImplements((IMXMLImplementsNode) node);
+ break;
case MXMLApplicationID:
case MXMLBindingID:
@@ -145,7 +149,6 @@ public class MXMLNodeSwitch implements IASNodeStrategy
case MXMLFunctionID:
case MXMLHTTPServiceID:
case MXMLHTTPServiceRequestID:
- case MXMLImplementsID:
case MXMLLibraryID:
case MXMLModelID:
case MXMLModelPropertyID:
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1e5d5d4f/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 1097bc6..8ac8a04 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
@@ -30,6 +30,7 @@ import org.apache.flex.compiler.tree.mxml.IMXMLEmbedNode;
import org.apache.flex.compiler.tree.mxml.IMXMLEventSpecifierNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFactoryNode;
import org.apache.flex.compiler.tree.mxml.IMXMLFileNode;
+import org.apache.flex.compiler.tree.mxml.IMXMLImplementsNode;
import org.apache.flex.compiler.tree.mxml.IMXMLInstanceNode;
import org.apache.flex.compiler.tree.mxml.IMXMLIntNode;
import org.apache.flex.compiler.tree.mxml.IMXMLLiteralNode;
@@ -110,5 +111,9 @@ public interface IMXMLBlockVisitor extends IBlockVisitor
//--------------------------------------------------------------------------
void visitEmbed(IMXMLEmbedNode node);
+
+ //--------------------------------------------------------------------------
+
+ void visitImplements(IMXMLImplementsNode node);
}