]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
valadoc: Follow rename of DataType data_type property to type_symbol
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 16 Feb 2019 18:41:45 +0000 (19:41 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 30 Sep 2019 12:43:00 +0000 (14:43 +0200)
libvaladoc/api/typereference.vala
valadoc/initializerbuilder.vala
valadoc/symbolresolver.vala
valadoc/treebuilder.vala

index 47bf5efc4282df61bdbccfcde64de7f8007be994..285c7d734586b2f94999d35d6c5f00d38bab32b1 100644 (file)
@@ -74,8 +74,8 @@ public class Valadoc.Api.TypeReference : Item {
                        }
 
                        // non ref counted types are weak, not unowned
-                       if (element.data_type is Vala.TypeSymbol
-                               && is_reference_counting ((Vala.TypeSymbol) element.data_type) == true)
+                       if (element.type_symbol is Vala.TypeSymbol
+                               && is_reference_counting ((Vala.TypeSymbol) element.type_symbol) == true)
                        {
                                return false;
                        }
@@ -110,8 +110,8 @@ public class Valadoc.Api.TypeReference : Item {
                }
 
                // non ref counted types are unowned, not weak
-               if (element.data_type is Vala.TypeSymbol
-                       && is_reference_counting ((Vala.TypeSymbol) element.data_type) == false)
+               if (element.type_symbol is Vala.TypeSymbol
+                       && is_reference_counting ((Vala.TypeSymbol) element.type_symbol) == false)
                {
                        return false;
                }
index e4ecfb8568905d01ee17c46d01db1934a90e34ce..dddd5e353c0e32474dfab1a13d04ae6616f17131 100644 (file)
@@ -36,8 +36,8 @@ private class Valadoc.Api.InitializerBuilder : Vala.CodeVisitor {
        }
 
        private void write_type (Vala.DataType vsymbol) {
-               if (vsymbol.data_type != null) {
-                       write_node (vsymbol.data_type);
+               if (vsymbol.type_symbol != null) {
+                       write_node (vsymbol.type_symbol);
                } else {
                        signature.append_literal ("null");
                }
index d96b9ca72f5dc3948134d33e0b1a97d765a4eade..a297c5e0257cfd473fd5d1d5576a75ffb87f7dde 100644 (file)
@@ -41,7 +41,7 @@ public class Valadoc.SymbolResolver : Visitor {
                var error_types = new Vala.ArrayList<Vala.DataType> ();
                vala_symbol.get_error_types (error_types);
                foreach (Vala.DataType type in error_types) {
-                       Vala.ErrorDomain vala_edom = (Vala.ErrorDomain) type.data_type;
+                       unowned Vala.ErrorDomain vala_edom = (Vala.ErrorDomain) type.type_symbol;
                        Symbol? edom = symbol_map.get (vala_edom);
                        symbol.add_child (edom ?? glib_error);
                }
@@ -86,8 +86,8 @@ public class Valadoc.SymbolResolver : Visitor {
                        reference.data_type = resolve (((Vala.DelegateType) vtyperef).delegate_symbol);
                } else if (vtyperef is Vala.GenericType) {
                        reference.data_type = resolve (((Vala.GenericType) vtyperef).type_parameter);
-               } else if (vtyperef.data_type != null) {
-                       reference.data_type = resolve (vtyperef.data_type);
+               } else if (vtyperef.type_symbol != null) {
+                       reference.data_type = resolve (vtyperef.type_symbol);
                }
 
                // Type parameters:
index 66638d892624e1070a536cd5359b5b5fff82e7e0..a8f1d62639ee01633f71c9d8fcad0d90f2f6e8b8 100644 (file)
@@ -171,7 +171,7 @@ public class Valadoc.TreeBuilder : Vala.CodeVisitor {
                        && !(vtyperef is Vala.GenericType)
                        && !(vtyperef is Vala.PointerType);
                string? signature = (vtyperef != null
-                       && vtyperef.data_type != null)? Vala.GVariantModule.get_dbus_signature (vtyperef.data_type) : null;
+                       && vtyperef.type_symbol != null)? Vala.GVariantModule.get_dbus_signature (vtyperef.type_symbol) : null;
                bool is_dynamic = vtyperef != null && vtyperef.is_dynamic;
 
                TypeReference type_ref = new TypeReference (parent,
@@ -605,9 +605,9 @@ public class Valadoc.TreeBuilder : Vala.CodeVisitor {
                foreach (Vala.DataType vala_type_ref in element.get_base_types ()) {
                        var type_ref = create_type_reference (vala_type_ref, node, node);
 
-                       if (vala_type_ref.data_type is Vala.Interface) {
+                       if (vala_type_ref.type_symbol is Vala.Interface) {
                                node.add_interface (type_ref);
-                       } else if (vala_type_ref.data_type is Vala.Class) {
+                       } else if (vala_type_ref.type_symbol is Vala.Class) {
                                node.base_type = type_ref;
                        }
                }
@@ -641,7 +641,7 @@ public class Valadoc.TreeBuilder : Vala.CodeVisitor {
                // prerequisites:
                foreach (Vala.DataType vala_type_ref in element.get_prerequisites ()) {
                        TypeReference type_ref = create_type_reference (vala_type_ref, node, node);
-                       if (vala_type_ref.data_type is Vala.Interface) {
+                       if (vala_type_ref.type_symbol is Vala.Interface) {
                                node.add_interface (type_ref);
                        } else {
                                node.base_type = type_ref;