]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Don't use camel-cased symbol names
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 23 Nov 2017 17:56:22 +0000 (18:56 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 29 Apr 2023 19:00:17 +0000 (21:00 +0200)
dbusgen/valadbusparser.vala

index 3b0ddef3b1b480893753bda6f89ebd07bfd8af16..e63c01f283ea2b45ca1470a9df5dbd2363fec6a8 100644 (file)
@@ -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;