From: Rico Tzschichholz Date: Sat, 20 Jan 2018 09:41:43 +0000 (+0100) Subject: girparser: Set NoAccessorMethod for non-readable and construct-only properties X-Git-Tag: 0.39.6~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efefc72ffa6224ba0ed314af7ab69d811e701011;p=thirdparty%2Fvala.git girparser: Set NoAccessorMethod for non-readable and construct-only properties --- diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index 7902e2d37..2c94e249a 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -999,7 +999,7 @@ public class Vala.GirParser : CodeVisitor { } } - prop.set_attribute ("NoAccessorMethod", false); + prop.set_attribute ("NoAccessorMethod", (readable == "0" && construct_only == "1")); if (prop.get_accessor != null) { var m = getter != null ? getter.symbol as Method : null; // ensure getter vfunc if the property is abstract