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.38.6~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98583b3cb73c8058a854312affcda6e824f4993b;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 234fcd775..bade241f2 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