]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gidlparser: Support nullable metadata for properties
authorLuca Bruno <lucabru@src.gnome.org>
Sat, 11 Jun 2011 15:32:37 +0000 (17:32 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sat, 11 Jun 2011 15:40:18 +0000 (17:40 +0200)
vapigen/valagidlparser.vala

index a1aa1ad51150424512bb1fb297b74091ce12ce97..316e42024b32c80a7e5bafe3227e8f99dc083102 100644 (file)
@@ -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;
+                                       }
                                }
                        }
                }