summaryrefslogtreecommitdiff
path: root/vala/valaattribute.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-12-14 19:05:55 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2017-12-15 09:00:18 +0100
commitae45d93cc019c541cf72f207d696218ed909a458 (patch)
treef1451668f0fb7b9e8995eb99f886c7080149d98a /vala/valaattribute.vala
parentd1a346d3892fb1e4202093a390aeac5963b920e0 (diff)
downloadvala-ae45d93cc019c541cf72f207d696218ed909a458.tar.gz
vala: Replace more public fields
Diffstat (limited to 'vala/valaattribute.vala')
-rw-r--r--vala/valaattribute.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/vala/valaattribute.vala b/vala/valaattribute.vala
index f1ef73f81..ed80d66d7 100644
--- a/vala/valaattribute.vala
+++ b/vala/valaattribute.vala
@@ -34,7 +34,7 @@ public class Vala.Attribute : CodeNode {
/**
* Contains all specified attribute arguments.
*/
- public Vala.Map<string,string> args = new HashMap<string,string> (str_hash, str_equal);
+ public Vala.Map<string,string> args { get; private set; }
/**
* Creates a new attribute.
@@ -46,6 +46,7 @@ public class Vala.Attribute : CodeNode {
public Attribute (string name, SourceReference? source_reference = null) {
this.name = name;
this.source_reference = source_reference;
+ this.args = new HashMap<string,string> (str_hash, str_equal);
if (!CodeContext.get ().deprecated) {
if (name == "Deprecated") {