]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc/girimporter: Skip "docsection" elements in <namespace>
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 27 Oct 2020 06:56:47 +0000 (07:56 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 3 Jan 2021 12:00:31 +0000 (13:00 +0100)
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226

libvaladoc/importer/girdocumentationimporter.vala

index b03e2971cd14eea5eb6f634a64d9c46506b4f854..12602f47cccb837349ef83d92d49571f7f08c8d1 100644 (file)
@@ -289,6 +289,9 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
                                parse_union ();
                        } else if (reader.name == "constant") {
                                parse_constant ();
+                       } else if (reader.name == "docsection") {
+                               // TODO Add docs to namespace
+                               skip_element ();
                        } else {
                                // error
                                error ("unknown child element `%s' in `namespace'".printf (reader.name));