[vala/switch-to-gir-gio: 10/40] girparser: Support null literals in metadata
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir-gio: 10/40] girparser: Support null literals in metadata
- Date: Thu, 30 Dec 2010 18:46:09 +0000 (UTC)
commit 795b5344bd102bf38992332c535cc8323df0a8f3
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 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index e7ab88b..eb9b58a 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]