[vala/wip/ricotz/lsp-rev: 15/15] WIP vala: Unresolved namespaces?
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/ricotz/lsp-rev: 15/15] WIP vala: Unresolved namespaces?
- Date: Thu, 20 Feb 2020 20:15:09 +0000 (UTC)
commit f9681db5918c6b77ba2a1ef7b1320968b8cae6de
Author: Princeton Ferro <princetonferro gmail com>
Date: Tue Feb 18 12:20:00 2020 +0100
WIP vala: Unresolved namespaces?
vala/valagirparser.vala | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 6d6f767d8..ae8692fbb 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1385,6 +1385,12 @@ public class Vala.GirParser : CodeVisitor {
continue;
}
+ if (ns == null) {
+ // We should not have a null namespace unless we're in LSP mode.
+ assert (context.keep_going);
+ continue;
+ }
+
provided_namespaces.add ("%s-%s".printf (gir_namespace, gir_version));
var gir_symbol = new UnresolvedSymbol (null, gir_namespace);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]