[vala/staging] vala: this_parameter property for subroutines is nullable



commit 2848b530e80c2404de8af29ab2805ffc6b381fbe
Author: Princeton Ferro <princetonferro gmail com>
Date:   Thu Jul 15 02:31:32 2021 -0400

    vala: this_parameter property for subroutines is nullable

 vala/valaconstructor.vala | 2 +-
 vala/valadestructor.vala  | 2 +-
 vala/valamethod.vala      | 2 +-
 vala/valaproperty.vala    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vala/valaconstructor.vala b/vala/valaconstructor.vala
index 2c923246c..8c916f8a5 100644
--- a/vala/valaconstructor.vala
+++ b/vala/valaconstructor.vala
@@ -29,7 +29,7 @@ public class Vala.Constructor : Subroutine {
        /**
         * Specifies the generated `this` parameter for instance methods.
         */
-       public Parameter this_parameter { get; set; }
+       public Parameter? this_parameter { get; set; }
 
        /**
         * Specifies whether this is an instance or a class constructor.
diff --git a/vala/valadestructor.vala b/vala/valadestructor.vala
index d036801d5..2febe55d3 100644
--- a/vala/valadestructor.vala
+++ b/vala/valadestructor.vala
@@ -29,7 +29,7 @@ public class Vala.Destructor : Subroutine {
        /**
         * Specifies the generated `this` parameter for instance methods.
         */
-       public Parameter this_parameter { get; set; }
+       public Parameter? this_parameter { get; set; }
 
        /**
         * Specifies whether this is an instance or a class destructor.
diff --git a/vala/valamethod.vala b/vala/valamethod.vala
index daef9789f..9ad3c2059 100644
--- a/vala/valamethod.vala
+++ b/vala/valamethod.vala
@@ -136,7 +136,7 @@ public class Vala.Method : Subroutine, Callable {
        /**
         * Specifies the generated `this` parameter for instance methods.
         */
-       public Parameter this_parameter { get; set; }
+       public Parameter? this_parameter { get; set; }
 
        /**
         * Specifies whether this method expects printf-style format arguments.
diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala
index 3d2cbf78a..6f04ff97d 100644
--- a/vala/valaproperty.vala
+++ b/vala/valaproperty.vala
@@ -69,7 +69,7 @@ public class Vala.Property : Symbol, Lockable {
        /**
         * Represents the generated `this` parameter in this property.
         */
-       public Parameter this_parameter { get; set; }
+       public Parameter? this_parameter { get; set; }
 
        /**
         * Specifies whether automatic accessor code generation should be


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]