[vala/0.40] girparser: Handle unsupported aliases which could not be fully processed
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] girparser: Handle unsupported aliases which could not be fully processed
- Date: Wed, 15 Aug 2018 07:25:06 +0000 (UTC)
commit cae9b3eedd3f17dca8c6c37045589f47d54c2b3c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Jul 12 08:51:11 2018 +0200
girparser: Handle unsupported aliases which could not be fully processed
This avoids criticals for e.g. aliases of error-domains
vala/valagirparser.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 36e78a8d6..69cb53ebb 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -3715,6 +3715,10 @@ public class Vala.GirParser : CodeVisitor {
deleg.external = true;
alias.symbol = deleg;
+ } else if (type_sym != null) {
+ Report.warning (alias.source_reference, "alias `%s' for `%s' is not supported".printf
(alias.get_full_name (), type_sym.get_full_name ()));
+ alias.symbol = type_sym;
+ alias.merged = true;
}
// inherit atributes, like type_id
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]