[vala/staging] vala: Check "this_parameter" if available
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Check "this_parameter" if available
- Date: Sun, 17 Nov 2019 12:20:31 +0000 (UTC)
commit 643fc25668a34974763049f6c5766c618caae757
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Nov 17 12:49:11 2019 +0100
vala: Check "this_parameter" if available
vala/valaconstructor.vala | 4 ++++
vala/valadestructor.vala | 4 ++++
vala/valamethod.vala | 4 ++++
vala/valaproperty.vala | 4 ++++
4 files changed, 16 insertions(+)
---
diff --git a/vala/valaconstructor.vala b/vala/valaconstructor.vala
index 0aee16ac8..a4844c728 100644
--- a/vala/valaconstructor.vala
+++ b/vala/valaconstructor.vala
@@ -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) {
diff --git a/vala/valadestructor.vala b/vala/valadestructor.vala
index 33d1f1a2c..61797ea22 100644
--- a/vala/valadestructor.vala
+++ b/vala/valadestructor.vala
@@ -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) {
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index 4e288a210..4af74c759 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -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;
}
diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala
index f9cf4d916..759735715 100644
--- a/vala/valaproperty.vala
+++ b/vala/valaproperty.vala
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]