[vala/wip/transform: 99/131] Use qualified names in transformed expressions
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 99/131] Use qualified names in transformed expressions
- Date: Sun, 20 Jan 2019 11:35:35 +0000 (UTC)
commit 78ada6a9a408ac57c5198f881f2037df4ad0c2fb
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 93ce6dff8..acfb2ae9f 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 570c744e1..22ae5b5c4 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]