[valadoc/wip/tintou/annotation] Take the "annotations" property into account
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc/wip/tintou/annotation] Take the "annotations" property into account
- Date: Fri, 9 Jun 2017 09:36:27 +0000 (UTC)
commit 8a0b9b2f2688bbaadc5367ea3d0d5da46e6ad4cc
Author: Corentin Noël <corentin elementary io>
Date: Fri Jun 9 11:35:50 2017 +0200
Take the "annotations" property into account
.../importer/girdocumentationimporter.vala | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/libvaladoc/importer/girdocumentationimporter.vala
b/src/libvaladoc/importer/girdocumentationimporter.vala
index 9984dd5..1d0d0c7 100644
--- a/src/libvaladoc/importer/girdocumentationimporter.vala
+++ b/src/libvaladoc/importer/girdocumentationimporter.vala
@@ -293,6 +293,9 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
parse_union ();
} else if (reader.name == "constant") {
parse_constant ();
+ } else if (reader.name == "attributes") {
+ debug ("attributes are ignored");
+ skip_element ();
} else {
// error
error ("unknown child element `%s' in `namespace'".printf (reader.name));
@@ -569,6 +572,9 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
parse_union ();
} else if (reader.name == "glib:signal") {
parse_signal ();
+ } else if (reader.name == "attributes") {
+ debug ("attributes are ignored");
+ skip_element ();
} else {
// error
error ("unknown child element `%s' in `class'".printf (reader.name));
@@ -603,6 +609,9 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
parse_method ("method");
} else if (reader.name == "glib:signal") {
parse_signal ();
+ } else if (reader.name == "attributes") {
+ debug ("attributes are ignored");
+ skip_element ();
} else {
// error
error ("unknown child element `%s' in `interface'".printf (reader.name));
@@ -801,6 +810,9 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
skip_element ();
} else if (reader.name == "union") {
parse_union ();
+ } else if (reader.name == "attributes") {
+ debug ("attributes are ignored");
+ skip_element ();
} else {
// error
error ("unknown child element `%s' in `class'".printf (reader.name));
@@ -835,6 +847,9 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
skip_element ();
} else if (reader.name == "record") {
parse_record ();
+ } else if (reader.name == "attributes") {
+ debug ("attributes are ignored");
+ skip_element ();
} else {
// error
error ("unknown child element `%s' in `union'".printf (reader.name));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]