diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-01-19 21:56:50 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-01-19 21:56:50 +0100 |
commit | a7d6533eda8fda65d8b24c3622b0e63fb90780b2 (patch) | |
tree | c90923c45110f2a21488ddca1a02d1f39d174e54 /vala/valagirparser.vala | |
parent | ade577c0149b44c218ea0822eed89808d0d65f07 (diff) | |
download | vala-a7d6533eda8fda65d8b24c3622b0e63fb90780b2.tar.gz |
vala: Make Class.is_compat/is_immutable/is_singleton read-only
Diffstat (limited to 'vala/valagirparser.vala')
-rw-r--r-- | vala/valagirparser.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index c077411cc..ee520350d 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -3484,7 +3484,7 @@ public class Vala.GirParser : CodeVisitor { bool require_copy_free = false; if (current.new_symbol) { cl = new Class (current.name, current.source_reference); - cl.is_compact = true; + cl.set_attribute ("Compact", true); current.symbol = cl; } else { cl = (Class) current.symbol; @@ -3812,7 +3812,7 @@ public class Vala.GirParser : CodeVisitor { cl.add_base_type (base_type); } cl.comment = alias.comment; - cl.is_compact = ((Class) type_sym).is_compact; + cl.set_attribute ("Compact", ((Class) type_sym).is_compact); alias.symbol = cl; } else if (type_sym is Interface) { // this is not a correct alias, but what can we do otherwise? |