[vala/staging] girwriter: Report error on secondary top-level namespace to be written
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] girwriter: Report error on secondary top-level namespace to be written
- Date: Fri, 14 Jun 2019 06:39:05 +0000 (UTC)
commit 5e96fb6def3ac57f4f67f3064863a3aef6cd651f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Jun 14 08:16:23 2019 +0200
girwriter: Report error on secondary top-level namespace to be written
Fixes https://gitlab.gnome.org/GNOME/vala/issues/805
codegen/valagirwriter.vala | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 0c7c5b987..3406f8ee6 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -332,6 +332,11 @@ public class Vala.GIRWriter : CodeVisitor {
return;
}
+ if (our_namespaces.size > 0) {
+ Report.error (ns.source_reference, "Secondary top-level namespace `%s' is not
supported by GIR format".printf (ns.name));
+ return;
+ }
+
write_c_includes (ns);
write_indent ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]