[vala/switch-to-gir: 13/24] 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/24] girparser: Support null literals in metadata
- Date: Mon, 22 Nov 2010 20:54:43 +0000 (UTC)
commit 81369408c36f8ec180c84769d0559693b9d95a90
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 8e5cc64..b8d6747 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]