[vala] gidlparser: Support nullable metadata for properties
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gidlparser: Support nullable metadata for properties
- Date: Sat, 11 Jun 2011 15:43:06 +0000 (UTC)
commit 7e1027c7b93b5b44519a4e742606492a56c0ee38
Author: Luca Bruno <lucabru src gnome org>
Date: Sat Jun 11 17:32:37 2011 +0200
gidlparser: Support nullable metadata for properties
vapigen/valagidlparser.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index a1aa1ad..316e420 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -2522,6 +2522,10 @@ public class Vala.GIdlParser : CodeVisitor {
if (eval (nv[1]) == "1") {
prop.experimental = true;
}
+ } else if (nv[0] == "nullable") {
+ if (eval (nv[1]) == "1") {
+ prop.property_type.nullable = true;
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]