[vala/0.40] codewriter: Write "weak" modifier for properties



commit 71d43c5f38ac9b2819d27bcda0add4f74c0a5cc7
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 ff38630f6..5d4385ae5 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -850,6 +850,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]