]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Make Vala.Variable an abstract class
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 19 Jan 2022 07:55:38 +0000 (08:55 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 19 Jan 2022 07:55:38 +0000 (08:55 +0100)
vala/valavariable.vala

index 80a444c0b112c8abc77de535df90968b5ec10f96..cccfbe72fec039eba9754c6877a9d1dcd97e5aa0 100644 (file)
@@ -20,7 +20,7 @@
  *     Jürg Billeter <j@bitron.ch>
  */
 
-public class Vala.Variable : Symbol {
+public abstract class Vala.Variable : Symbol {
        /**
         * The optional initializer expression.
         */
@@ -54,7 +54,7 @@ public class Vala.Variable : Symbol {
        Expression? _initializer;
        DataType? _variable_type;
 
-       public Variable (DataType? variable_type, string? name, Expression? initializer = null, SourceReference? source_reference = null, Comment? comment = null) {
+       protected Variable (DataType? variable_type, string? name, Expression? initializer = null, SourceReference? source_reference = null, Comment? comment = null) {
                base (name, source_reference, comment);
                this.variable_type = variable_type;
                this.initializer = initializer;