[vala/staging] vala: Remove some public API from expressions and statements (2)
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Remove some public API from expressions and statements (2)
- Date: Tue, 14 Jul 2020 12:14:57 +0000 (UTC)
commit dc7a41232c67e5cd84d14707fb8250a3589070c7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Jul 13 20:00:08 2020 +0200
vala: Remove some public API from expressions and statements (2)
vala/valacatchclause.vala | 8 ++++----
vala/valamemberinitializer.vala | 4 ++--
vala/valamethodcall.vala | 2 +-
vala/valanamedargument.vala | 4 ++--
vala/valapointerindirection.vala | 2 +-
vala/valaswitchlabel.vala | 2 +-
vala/valatypecheck.vala | 4 ++--
7 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/vala/valacatchclause.vala b/vala/valacatchclause.vala
index 524d3909f..4ecb79db8 100644
--- a/vala/valacatchclause.vala
+++ b/vala/valacatchclause.vala
@@ -30,7 +30,7 @@ public class Vala.CatchClause : CodeNode {
*/
public DataType? error_type {
get { return _data_type; }
- set {
+ private set {
_data_type = value;
if (_data_type != null) {
_data_type.parent_node = this;
@@ -41,14 +41,14 @@ public class Vala.CatchClause : CodeNode {
/**
* Specifies the error variable name.
*/
- public string? variable_name { get; set; }
+ public string? variable_name { get; private set; }
/**
* Specifies the error handler body.
*/
public Block body {
get { return _body; }
- set {
+ private set {
_body = value;
_body.parent_node = this;
}
@@ -59,7 +59,7 @@ public class Vala.CatchClause : CodeNode {
*/
public LocalVariable error_variable {
get { return _error_variable; }
- set {
+ private set {
_error_variable = value;
_error_variable.parent_node = this;
}
diff --git a/vala/valamemberinitializer.vala b/vala/valamemberinitializer.vala
index 436423aa5..bc39dad33 100644
--- a/vala/valamemberinitializer.vala
+++ b/vala/valamemberinitializer.vala
@@ -30,14 +30,14 @@ public class Vala.MemberInitializer : CodeNode {
/**
* Member name.
*/
- public string name { get; set; }
+ public string name { get; private set; }
/**
* Initializer expression.
*/
public Expression initializer {
get { return _initializer; }
- set {
+ private set {
_initializer = value;
_initializer.parent_node = this;
}
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index 2416e5b9f..aeacb958a 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -31,7 +31,7 @@ public class Vala.MethodCall : Expression {
*/
public Expression call {
get { return _call; }
- set {
+ private set {
_call = value;
_call.parent_node = this;
}
diff --git a/vala/valanamedargument.vala b/vala/valanamedargument.vala
index 4c3e23b33..925225da9 100644
--- a/vala/valanamedargument.vala
+++ b/vala/valanamedargument.vala
@@ -21,13 +21,13 @@
*/
public class Vala.NamedArgument : Expression {
- public string name { get; set; }
+ public string name { get; private set; }
public Expression inner {
get {
return _inner;
}
- set {
+ private set {
_inner = value;
_inner.parent_node = this;
}
diff --git a/vala/valapointerindirection.vala b/vala/valapointerindirection.vala
index 156194cb8..bcf32b548 100644
--- a/vala/valapointerindirection.vala
+++ b/vala/valapointerindirection.vala
@@ -34,7 +34,7 @@ public class Vala.PointerIndirection : Expression {
get {
return _inner;
}
- set {
+ private set {
_inner = value;
_inner.parent_node = this;
}
diff --git a/vala/valaswitchlabel.vala b/vala/valaswitchlabel.vala
index 52b781729..27adbd2cd 100644
--- a/vala/valaswitchlabel.vala
+++ b/vala/valaswitchlabel.vala
@@ -31,7 +31,7 @@ public class Vala.SwitchLabel : CodeNode {
*/
public Expression expression {
get { return _expression; }
- set {
+ private set {
_expression = value;
_expression.parent_node = this;
}
diff --git a/vala/valatypecheck.vala b/vala/valatypecheck.vala
index 167ed1128..b65b2ce27 100644
--- a/vala/valatypecheck.vala
+++ b/vala/valatypecheck.vala
@@ -31,7 +31,7 @@ public class Vala.TypeCheck : Expression {
*/
public Expression expression {
get { return _expression; }
- set {
+ private set {
_expression = value;
_expression.parent_node = this;
}
@@ -42,7 +42,7 @@ public class Vala.TypeCheck : Expression {
*/
public DataType type_reference {
get { return _data_type; }
- set {
+ private set {
_data_type = value;
_data_type.parent_node = this;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]