[vala/staging] girparser: Make property inherit nullable attribute from getter method
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] girparser: Make property inherit nullable attribute from getter method
- Date: Thu, 3 Jun 2021 10:11:44 +0000 (UTC)
commit 9a9eb1e36df98c637b1111dfab36817401e4aabb
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri May 28 19:04:37 2021 +0200
girparser: Make property inherit nullable attribute from getter method
vala/valagirparser.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 0b9ae9555..546a68d80 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1069,6 +1069,7 @@ public class Vala.GirParser : CodeVisitor {
}
prop.get_accessor.value_type.value_owned =
m.return_type.value_owned;
+ prop.property_type.nullable =
m.return_type.nullable;
if (!m.is_abstract && !m.is_virtual &&
prop.is_abstract) {
prop.set_attribute
("ConcreteAccessor", true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]