]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: this_parameter property for subroutines is nullable
authorPrinceton Ferro <princetonferro@gmail.com>
Thu, 15 Jul 2021 06:31:32 +0000 (02:31 -0400)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 23 Jul 2021 10:57:19 +0000 (12:57 +0200)
vala/valaconstructor.vala
vala/valadestructor.vala
vala/valamethod.vala
vala/valaproperty.vala

index 2c923246c3e767e3827ce14733c08825fcbf6731..8c916f8a520517e9245925ce376206b89e9251c7 100644 (file)
@@ -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.
index d036801d59ccf91e396882040c845b7715c959e4..2febe55d3c6dea012d5eaa6d88451fee46b8ad26 100644 (file)
@@ -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.
index daef9789f6b21e0cb5d3bfb13f978a3692b6a182..9ad3c205900e29110e1cf16b31c9722b635d864c 100644 (file)
@@ -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.
index 3d2cbf78a37bab0b330ebea1070e4cc9c14cd092..6f04ff97db2503d1ec7f45ee524822fce9f3cc4c 100644 (file)
@@ -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