You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/08/01 21:53:35 UTC

[royale-compiler] 02/02: treat XML and HTTPService as any other instance for now

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 32ac367d89b24c0f872a4a8be2b1d850606616d3
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Aug 1 14:53:21 2018 -0700

    treat XML and HTTPService as any other instance for now
---
 .../royale/compiler/internal/visitor/mxml/MXMLNodeSwitch.java       | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/visitor/mxml/MXMLNodeSwitch.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/visitor/mxml/MXMLNodeSwitch.java
index a3ded60..d15fcb3 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/visitor/mxml/MXMLNodeSwitch.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/visitor/mxml/MXMLNodeSwitch.java
@@ -149,6 +149,10 @@ public class MXMLNodeSwitch implements IASNodeStrategy
         case MXMLObjectID:
             visitor.visitObject((IMXMLObjectNode) node);
         	break;
+        case MXMLHTTPServiceID:
+        case MXMLXMLID:
+            visitor.visitInstance((IMXMLInstanceNode) node);
+            break;
         case MXMLApplicationID:
         case MXMLBindingAttributeID:
         case MXMLClassID:
@@ -160,7 +164,6 @@ public class MXMLNodeSwitch implements IASNodeStrategy
         case MXMLDesignLayerID:
         case MXMLEffectSpecifierID:
         case MXMLFunctionID:
-        case MXMLHTTPServiceID:
         case MXMLHTTPServiceRequestID:
         case MXMLLibraryID:
         case MXMLModelID:
@@ -175,7 +178,6 @@ public class MXMLNodeSwitch implements IASNodeStrategy
         case MXMLResourceID:
         case MXMLWebServiceID:
         case MXMLWebServiceOperationID:
-        case MXMLXMLID:
         case MXMLXMLListID:
         default:
             throw new IllegalArgumentException(