]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Add accessor_method metadata for properties
authorJürg Billeter <j@bitron.ch>
Mon, 25 May 2009 08:49:48 +0000 (10:49 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 25 May 2009 08:49:48 +0000 (10:49 +0200)
vapigen/valagidlparser.vala

index a9fa7d0d2b02efbee29be43cca94f15334e460b7..dd8d82d20aaf3bccf5e57c68d81cb55173357422 100644 (file)
@@ -1751,6 +1751,10 @@ public class Vala.GIdlParser : CodeVisitor {
                                                arg_type.value_owned = true;
                                                prop.property_type.add_type_argument (arg_type);
                                        }
+                               } else if (nv[0] == "accessor_method") {
+                                       if (eval (nv[1]) == "0") {
+                                               prop.no_accessor_method = true;
+                                       }
                                }
                        }
                }