[vala/staging: 1/2] girparser: Set NoAccessorMethod for non-readable and construct-only properties
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 1/2] girparser: Set NoAccessorMethod for non-readable and construct-only properties
- Date: Sat, 20 Jan 2018 11:26:45 +0000 (UTC)
commit efefc72ffa6224ba0ed314af7ab69d811e701011
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Jan 20 10:41:43 2018 +0100
girparser: Set NoAccessorMethod for non-readable and construct-only properties
vala/valagirparser.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 7902e2d..2c94e24 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]