[vala] girparser: Add closure argument for metadata
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Add closure argument for metadata
- Date: Thu, 9 Jun 2011 18:26:53 +0000 (UTC)
commit 3f04799cd3dd842584b1e1914e5ae4604431ddbf
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Jun 9 20:23:43 2011 +0200
girparser: Add closure argument for metadata
vala/valagirparser.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 33882d0..ee66810 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -65,7 +65,8 @@ public class Vala.GirParser : CodeVisitor {
THROWS,
PRINTF_FORMAT,
ARRAY_LENGTH_FIELD,
- SENTINEL;
+ SENTINEL,
+ CLOSURE;
public static ArgumentType? from_string (string name) {
var enum_class = (EnumClass) typeof(ArgumentType).class_ref ();
@@ -1916,6 +1917,9 @@ public class Vala.GirParser : CodeVisitor {
if (destroy != null && &destroy_idx != null) {
destroy_idx = int.parse (destroy);
}
+ if (metadata.has_argument (ArgumentType.CLOSURE)) {
+ closure_idx = metadata.get_integer (ArgumentType.CLOSURE);
+ }
next ();
if (reader.name == "varargs") {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]