[valadoc] gir-importer: Ignore <annotation> tags



commit 2a8739c8bc4dd1998fd000033d9ef0d3819eff76
Author: Florian Brosch <flo brosch gmail com>
Date:   Tue Aug 27 14:40:44 2013 +0200

    gir-importer: Ignore <annotation> tags

 .../importer/girdocumentationimporter.vala         |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libvaladoc/importer/girdocumentationimporter.vala 
b/src/libvaladoc/importer/girdocumentationimporter.vala
index 02f9e85..1988b96 100644
--- a/src/libvaladoc/importer/girdocumentationimporter.vala
+++ b/src/libvaladoc/importer/girdocumentationimporter.vala
@@ -176,6 +176,12 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
 
        private void next () {
                current_token = reader.read_token (out begin, out end);
+
+               // Skip <annotation /> (only generated by valac)
+               if (current_token == MarkupTokenType.START_ELEMENT && reader.name == "annotation") {
+                       next (); // MarkupTokenType.END_ELEMENT, annotation
+                       next ();
+               }
        }
 
        private void start_element (string name) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]