[vala/0.54] girparser: Accept "sealed" for transformed records and compact classes
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.54] girparser: Accept "sealed" for transformed records and compact classes
- Date: Sun, 14 Nov 2021 09:39:38 +0000 (UTC)
commit 15d54b2cac3a089dbc2d3b11b57aea671f49437c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 30 09:33:34 2021 +0200
girparser: Accept "sealed" for transformed records and compact classes
vala/valagirparser.vala | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 31b8ad4c6..6a4b572af 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -3583,6 +3583,14 @@ public class Vala.GirParser : CodeVisitor {
} else {
cl.set_attribute ("Compact", true);
}
+ if (metadata.has_argument (ArgumentType.SEALED) && metadata.get_bool
(ArgumentType.SEALED)) {
+ if (cl.is_compact) {
+ cl.set_attribute_bool ("Compact", "opaque", true);
+ } else {
+ cl.is_sealed = true;
+ }
+ }
+
current.symbol = cl;
} else {
cl = (Class) current.symbol;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]