]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Check "this_parameter" if available
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 17 Nov 2019 11:49:11 +0000 (12:49 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 17 Nov 2019 13:12:07 +0000 (14:12 +0100)
vala/valaconstructor.vala
vala/valacreationmethod.vala
vala/valadestructor.vala
vala/valamethod.vala
vala/valaproperty.vala

index 0aee16ac86a67ee184356fa44c90b9268df09efa..a4844c7285e7937c3e758442508add6426190aa2 100644 (file)
@@ -67,6 +67,10 @@ public class Vala.Constructor : Subroutine {
 
                checked = true;
 
+               if (this_parameter != null) {
+                       this_parameter.check (context);
+               }
+
                context.analyzer.current_symbol = this;
 
                if (body != null) {
index 48f301ddf6f4ddb66bea10d67f0142b9cde8f4b7..5969fd3986aa30a90854d0015f5364def625f708 100644 (file)
@@ -93,6 +93,10 @@ public class Vala.CreationMethod : Method {
                        return false;
                }
 
+               if (this_parameter != null) {
+                       this_parameter.check (context);
+               }
+
                var old_source_file = context.analyzer.current_source_file;
                var old_symbol = context.analyzer.current_symbol;
 
index 33d1f1a2c39eb1b5fdf80eeeab5ae5ff9226ccb9..61797ea228a7ebdc3b49fa95cd8d72b4e8463eaa 100644 (file)
@@ -67,6 +67,10 @@ public class Vala.Destructor : Subroutine {
 
                checked = true;
 
+               if (this_parameter != null) {
+                       this_parameter.check (context);
+               }
+
                context.analyzer.current_symbol = this;
 
                if (body != null) {
index 4e288a210b8ea77a9d2b7c203f1be3b5a7f71cbb..4af74c759348b7380a8adef92976227ac8c626f1 100644 (file)
@@ -704,6 +704,10 @@ public class Vala.Method : Subroutine, Callable {
 
                checked = true;
 
+               if (this_parameter != null) {
+                       this_parameter.check (context);
+               }
+
                if (get_attribute ("DestroysInstance") != null) {
                        this_parameter.variable_type.value_owned = true;
                }
index f9cf4d91696bcca5326db18b8a89d7aa5b904f76..75973571596da9343f6010746ada30383d0284bd 100644 (file)
@@ -408,6 +408,10 @@ public class Vala.Property : Symbol, Lockable {
 
                checked = true;
 
+               if (this_parameter != null) {
+                       this_parameter.check (context);
+               }
+
                if (parent_symbol is Class && (is_abstract || is_virtual)) {
                        var cl = (Class) parent_symbol;
                        if (cl.is_compact && cl.base_class != null) {