[vala/0.34] 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/0.34] girparser: Set NoAccessorMethod for non-readable and construct-only properties
- Date: Tue, 30 Jan 2018 07:24:32 +0000 (UTC)
commit 6b673a3749f801be72a895b9eb7b333c4c6a44e8
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 d169cd7..50b71f0 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -988,7 +988,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]