[vala/switch-to-gir: 13/22] girparser: Support null literals in metadata
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 13/22] girparser: Support null literals in metadata
- Date: Sat, 20 Nov 2010 10:24:45 +0000 (UTC)
commit c1b1fee624892c8c327f97f09745b07cb404ee80
Author: Luca Bruno <lucabru src gnome org>
Date: Wed Nov 17 21:04:38 2010 +0100
girparser: Support null literals in metadata
vala/valagirparser.vala | 3 +++
vapi/packages/gio-2.0/Gio-2.0.metadata | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index fe1cbeb..64967b6 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -404,6 +404,9 @@ public class Vala.GirParser : CodeVisitor {
var src = get_current_src ();
Expression expr = null;
switch (current) {
+ case TokenType.NULL:
+ expr = new NullLiteral (src);
+ break;
case TokenType.TRUE:
expr = new BooleanLiteral (true, src);
break;
diff --git a/vapi/packages/gio-2.0/Gio-2.0.metadata b/vapi/packages/gio-2.0/Gio-2.0.metadata
index bbc6ea7..ebba460 100644
--- a/vapi/packages/gio-2.0/Gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/Gio-2.0.metadata
@@ -1,5 +1,7 @@
Gio name="GLib"
content_type_* parent="GLib.ContentType" name="content_type_(.*)"
+*.cancellable nullable default=null
+*.*.cancellable nullable default=null
// Possible GI bugs
FileIOStream.seek.cancellable nullable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]