[vala/wip/transform: 73/99] Use qualified names in transformed expressions



commit af0fa1bfe5d2335fdbed3a8326b52491fa23f578
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat May 18 12:41:15 2013 +0200

    Use qualified names in transformed expressions

 codegen/valagdbusclienttransformer.vala |    2 +-
 codegen/valagdbusservertransformer.vala |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/codegen/valagdbusclienttransformer.vala b/codegen/valagdbusclienttransformer.vala
index 10136f2..9f7466c 100644
--- a/codegen/valagdbusclienttransformer.vala
+++ b/codegen/valagdbusclienttransformer.vala
@@ -219,7 +219,7 @@ public class Vala.GDBusClientTransformer : GVariantTransformer {
                push_builder (new CodeBuilder.for_subroutine (m));
 
                b.open_switch (expression ("signal_name"), null);
-               b.add_expression (expression ("assert_not_reached ()"));
+               b.add_expression (expression ("GLib.assert_not_reached ()"));
                b.add_break ();
                foreach (var sig in sym.get_signals ()) {
                        if (sig.access != SymbolAccessibility.PUBLIC) {
diff --git a/codegen/valagdbusservertransformer.vala b/codegen/valagdbusservertransformer.vala
index 5bc5c2c..2f87cb7 100644
--- a/codegen/valagdbusservertransformer.vala
+++ b/codegen/valagdbusservertransformer.vala
@@ -180,7 +180,7 @@ public class Vala.GDBusServerTransformer : GDBusClientTransformer {
 
                push_builder (new CodeBuilder.for_subroutine (im));
                var object_type = SemanticAnalyzer.get_data_type_for_symbol (sym);
-               var object = b.add_temp_declaration (null, expression (@"($object_type) (((Object[]) 
user_data)[0])"));
+               var object = b.add_temp_declaration (null, expression (@"($object_type) (((GLib.Object[]) 
user_data)[0])"));
                b.open_switch (expression ("method_name"), null);
                b.add_return ();
                foreach (var m in sym.get_methods ()) {
@@ -218,7 +218,7 @@ public class Vala.GDBusServerTransformer : GDBusClientTransformer {
 
                push_builder (new CodeBuilder.for_subroutine (m));
                var object_type = SemanticAnalyzer.get_data_type_for_symbol (sym);
-               var object = b.add_temp_declaration (null, expression (@"($object_type) (((Object[]) 
user_data)[0])"));
+               var object = b.add_temp_declaration (null, expression (@"($object_type) (((GLib.Object[]) 
user_data)[0])"));
                b.open_switch (expression ("property_name"), null);
                b.add_return (expression ("null"));
                foreach (var prop in sym.get_properties ()) {
@@ -255,7 +255,7 @@ public class Vala.GDBusServerTransformer : GDBusClientTransformer {
 
                push_builder (new CodeBuilder.for_subroutine (m));
                var object_type = SemanticAnalyzer.get_data_type_for_symbol (sym);
-               var object = b.add_temp_declaration (null, expression (@"($object_type) (((Object[]) 
user_data)[0])"));
+               var object = b.add_temp_declaration (null, expression (@"($object_type) (((GLib.Object[]) 
user_data)[0])"));
                b.open_switch (expression ("property_name"), null);
                b.add_return (expression ("false"));
                foreach (var prop in sym.get_properties ()) {


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