[vala/staging] girparser: Add destroy argument for metadata



commit fadbe467554db51c5afdea64db107f689b938454
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Mar 27 09:40:41 2017 +0200

    girparser: Add destroy argument for metadata
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750838

 vala/valagirparser.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 524e8c3..6a30f33 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -69,6 +69,7 @@ public class Vala.GirParser : CodeVisitor {
                ARRAY_LENGTH_FIELD,
                SENTINEL,
                CLOSURE,
+               DESTROY,
                CPREFIX,
                LOWER_CASE_CPREFIX,
                ERRORDOMAIN,
@@ -2448,6 +2449,9 @@ public class Vala.GirParser : CodeVisitor {
                if (metadata.has_argument (ArgumentType.CLOSURE)) {
                        closure_idx = metadata.get_integer (ArgumentType.CLOSURE);
                }
+               if (metadata.has_argument (ArgumentType.DESTROY)) {
+                       destroy_idx = metadata.get_integer (ArgumentType.DESTROY);
+               }
 
                next ();
 


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