[vala/wip/dbusgen: 381/403] Don't use camel-cased symbol names




commit 52254c2414a741335812fd9bf6329874a7facecb
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Nov 23 18:56:22 2017 +0100

    Don't use camel-cased symbol names

 dbusgen/valadbusparser.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/dbusgen/valadbusparser.vala b/dbusgen/valadbusparser.vala
index 3b0ddef3b..e63c01f28 100644
--- a/dbusgen/valadbusparser.vala
+++ b/dbusgen/valadbusparser.vala
@@ -240,6 +240,7 @@ public class Vala.DBusParser : CodeVisitor {
 
                DataType return_type = new VoidType ();
 
+               name = Vala.Symbol.camel_case_to_lower_case (name);
                current_node = current_method = new Method (name, return_type, src);
                current_iface.add_method ((Method)current_method);
                ((Method)current_method).is_abstract = true;
@@ -281,6 +282,7 @@ public class Vala.DBusParser : CodeVisitor {
                        set_access = new PropertyAccessor (false, true, false, date_type, null, 
get_current_src ());
                }
 
+               name = Vala.Symbol.camel_case_to_lower_case (name);
                current_node = current_property = new Property (name, date_type, get_access, set_access, 
get_current_src ());
                current_property.is_abstract = true;
                current_property.access = SymbolAccessibility.PUBLIC;
@@ -384,6 +386,7 @@ public class Vala.DBusParser : CodeVisitor {
                        return;
                }
 
+               name = Vala.Symbol.camel_case_to_lower_case (name);
                current_node = current_method = new Signal (name, new VoidType ());
                current_iface.add_signal ((Signal)current_node);
                ((Signal)current_node).access = SymbolAccessibility.PUBLIC;


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