[vala/staging] vala: Remove some public API from symbols and types
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Remove some public API from symbols and types
- Date: Sun, 6 Feb 2022 16:34:39 +0000 (UTC)
commit 2b443beb308f9a99ea9cd0a038e9b7128d18fd74
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Feb 6 14:29:55 2022 +0100
vala: Remove some public API from symbols and types
vala/valaarraytype.vala | 2 +-
vala/valaconstant.vala | 4 ++--
vala/valadynamicmethod.vala | 2 +-
vala/valadynamicproperty.vala | 2 +-
vala/valadynamicsignal.vala | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/vala/valaarraytype.vala b/vala/valaarraytype.vala
index b032de4f7..a10bce502 100644
--- a/vala/valaarraytype.vala
+++ b/vala/valaarraytype.vala
@@ -31,7 +31,7 @@ public class Vala.ArrayType : ReferenceType {
*/
public DataType element_type {
get { return _element_type; }
- set {
+ private set {
_element_type = value;
_element_type.parent_node = this;
}
diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala
index c9b1bfbfd..aa97e6ea2 100644
--- a/vala/valaconstant.vala
+++ b/vala/valaconstant.vala
@@ -31,7 +31,7 @@ public class Vala.Constant : Symbol {
*/
public DataType type_reference {
get { return _data_type; }
- set {
+ private set {
_data_type = value;
_data_type.parent_node = this;
}
@@ -42,7 +42,7 @@ public class Vala.Constant : Symbol {
*/
public Expression? value {
get { return _value; }
- set {
+ private set {
_value = value;
if (_value != null) {
_value.parent_node = this;
diff --git a/vala/valadynamicmethod.vala b/vala/valadynamicmethod.vala
index 845c0af54..85e953255 100644
--- a/vala/valadynamicmethod.vala
+++ b/vala/valadynamicmethod.vala
@@ -26,7 +26,7 @@ using GLib;
* Represents a late bound method.
*/
public class Vala.DynamicMethod : Method {
- public DataType dynamic_type { get; set; }
+ public DataType dynamic_type { get; private set; }
public MethodCall invocation { get; set; }
diff --git a/vala/valadynamicproperty.vala b/vala/valadynamicproperty.vala
index a15ff2f7d..953bacd77 100644
--- a/vala/valadynamicproperty.vala
+++ b/vala/valadynamicproperty.vala
@@ -26,7 +26,7 @@ using GLib;
* Represents a late bound property.
*/
public class Vala.DynamicProperty : Property {
- public DataType dynamic_type { get; set; }
+ public DataType dynamic_type { get; private set; }
public DynamicProperty (DataType dynamic_type, string name, SourceReference? source_reference = null,
Comment? comment = null) {
base (name, null, null, null, source_reference, comment);
diff --git a/vala/valadynamicsignal.vala b/vala/valadynamicsignal.vala
index c250dac20..d5fe97d6f 100644
--- a/vala/valadynamicsignal.vala
+++ b/vala/valadynamicsignal.vala
@@ -26,7 +26,7 @@ using GLib;
* Represents a late bound signal.
*/
public class Vala.DynamicSignal : Signal {
- public DataType dynamic_type { get; set; }
+ public DataType dynamic_type { get; private set; }
public Expression handler { get; set; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]