[valadoc] gir-importer: skip <union> elements without ctype-attributes
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] gir-importer: skip <union> elements without ctype-attributes
- Date: Tue, 2 Sep 2014 17:16:45 +0000 (UTC)
commit 89ecb6a91b5bfbe7d1fbf7703b09519079bd6a33
Author: Florian Brosch <flo brosch gmail com>
Date: Sat Aug 23 06:21:11 2014 +0200
gir-importer: skip <union> elements without ctype-attributes
.../importer/girdocumentationimporter.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libvaladoc/importer/girdocumentationimporter.vala
b/src/libvaladoc/importer/girdocumentationimporter.vala
index 45bbf09..e4793f8 100644
--- a/src/libvaladoc/importer/girdocumentationimporter.vala
+++ b/src/libvaladoc/importer/girdocumentationimporter.vala
@@ -812,6 +812,10 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
private void parse_union () {
start_element ("union");
this.parent_c_identifier = reader.get_attribute ("c:type");
+ if (this.parent_c_identifier == null) {
+ skip_element ();
+ return ;
+ }
next ();
Api.GirSourceComment? comment = parse_symbol_doc ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]