[vala/0.44] codewriter: Write "weak" modifier for properties
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.44] codewriter: Write "weak" modifier for properties
- Date: Sun, 8 Sep 2019 16:23:41 +0000 (UTC)
commit b1c7064ea051caee4f9bbeeba89acfee8999ab00
Author: Jeremy Philippe <jeremy philippe gmail com>
Date: Sun Sep 1 21:57:01 2019 +0200
codewriter: Write "weak" modifier for properties
vala/valacodewriter.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index f3967a15c..058290a3c 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -837,6 +837,10 @@ public class Vala.CodeWriter : CodeVisitor {
write_string ("override ");
}
+ if (prop.property_type.is_weak ()) {
+ write_string ("weak ");
+ }
+
write_type (prop.property_type);
write_string (" ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]