[vala] Use public accesibility by default for property accessors
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Use public accesibility by default for property accessors
- Date: Sat, 16 Oct 2010 10:41:07 +0000 (UTC)
commit 3c091b30bd4f3edb941b8ca98722db9f78ea749f
Author: Jürg Billeter <j bitron ch>
Date: Sat Oct 16 11:34:11 2010 +0200
Use public accesibility by default for property accessors
Fixes bug 623493.
vala/valaclass.vala | 2 --
vala/valamemberaccess.vala | 2 --
vala/valapropertyaccessor.vala | 1 +
3 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index 21b212b..7031601 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -298,10 +298,8 @@ public class Vala.Class : ObjectTypeSymbol {
get_type.value_owned = true;
prop.get_accessor = new PropertyAccessor (true, false, false, get_type, null, f.source_reference);
- prop.get_accessor.access = SymbolAccessibility.PUBLIC;
prop.set_accessor = new PropertyAccessor (false, true, false, prop.property_type.copy (), null, f.source_reference);
- prop.set_accessor.access = SymbolAccessibility.PUBLIC;
f.name = "_%s".printf (f.name);
f.access = SymbolAccessibility.PRIVATE;
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index 6a23050..c73d49f 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -385,7 +385,6 @@ public class Vala.MemberAccess : Expression {
var prop = new DynamicProperty (inner.value_type, member_name, source_reference);
prop.access = SymbolAccessibility.PUBLIC;
prop.set_accessor = new PropertyAccessor (false, true, false, null, null, prop.source_reference);
- prop.set_accessor.access = SymbolAccessibility.PUBLIC;
prop.owner = inner.value_type.data_type.scope;
dynamic_object_type.type_symbol.scope.add (null, prop);
symbol_reference = prop;
@@ -416,7 +415,6 @@ public class Vala.MemberAccess : Expression {
}
prop.access = SymbolAccessibility.PUBLIC;
prop.get_accessor = new PropertyAccessor (true, false, false, prop.property_type.copy (), null, prop.source_reference);
- prop.get_accessor.access = SymbolAccessibility.PUBLIC;
prop.owner = inner.value_type.data_type.scope;
dynamic_object_type.type_symbol.scope.add (null, prop);
symbol_reference = prop;
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala
index a1d4763..e5d3d51 100644
--- a/vala/valapropertyaccessor.vala
+++ b/vala/valapropertyaccessor.vala
@@ -138,6 +138,7 @@ public class Vala.PropertyAccessor : Symbol {
this.construction = construction;
this.value_type = value_type;
this.body = body;
+ this.access = SymbolAccessibility.PUBLIC;
}
public override void accept (CodeVisitor visitor) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]