[gnome-code-assistance] [backends/jscommon] Do not use E4X



commit 24f7eee0e626b5a06280270a670ab8e3ee51b59e
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sat Nov 9 10:25:06 2013 +0100

    [backends/jscommon] Do not use E4X

 .../gnome/codeassistance/transport_dbus.js         |   44 ++++++++++----------
 1 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/backends/jscommon/gnome/codeassistance/transport_dbus.js 
b/backends/jscommon/gnome/codeassistance/transport_dbus.js
index c08f1dc..f74b4cf 100644
--- a/backends/jscommon/gnome/codeassistance/transport_dbus.js
+++ b/backends/jscommon/gnome/codeassistance/transport_dbus.js
@@ -3,30 +3,30 @@ const Gio = imports.gi.Gio;
 const System = imports.system;
 const Lang = imports.lang;
 
-var ServiceIface = <interface name="org.gnome.CodeAssist.Service">
-  <method name="Parse">
-    <arg direction="in"  type="s" name="path" />
-    <arg direction="in"  type="x" name="cursor" />
-    <arg direction="in"  type="a(ss)" name="unsaved" />
-    <arg direction="in"  type="a{sv}" name="options" />
-    <arg direction="out" type="o" />
-  </method>
-  <method name="Dispose">
-    <arg direction="in"  type="s" name="path" />
-  </method>
-  <method name="SupportedServices">
-    <arg direction="out" type="as" />
-  </method>
-</interface>
-
-var DocumentIface = <interface name="org.gnome.CodeAssist.Document">
-</interface>
-
-var DiagnosticsIface = <interface name="org.gnome.CodeAssist.Diagnostics">
-  <method name="Diagnostics">
-    <arg direction="out" type="a(ua((x(xx)(xx))s)a(x(xx)(xx))s)"/>
-  </method>
-</interface>
+var ServiceIface = '<interface name="org.gnome.CodeAssist.Service">             \
+  <method name="Parse">                                                         \
+    <arg direction="in"  type="s" name="path" />                                \
+    <arg direction="in"  type="x" name="cursor" />                              \
+    <arg direction="in"  type="a(ss)" name="unsaved" />                         \
+    <arg direction="in"  type="a{sv}" name="options" />                         \
+    <arg direction="out" type="o" />                                            \
+  </method>                                                                     \
+  <method name="Dispose">                                                       \
+    <arg direction="in"  type="s" name="path" />                                \
+  </method>                                                                     \
+  <method name="SupportedServices">                                             \
+    <arg direction="out" type="as" />                                           \
+  </method>                                                                     \
+</interface>';
+
+var DocumentIface = '<interface name="org.gnome.CodeAssist.Document">           \
+</interface>';
+
+var DiagnosticsIface = '<interface name="org.gnome.CodeAssist.Diagnostics">     \
+  <method name="Diagnostics">                                                   \
+    <arg direction="out" type="a(ua((x(xx)(xx))s)a(x(xx)(xx))s)"/>              \
+  </method>                                                                     \
+</interface>';
 
 var Document = function(doc) {
     this._init(doc);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]