[gi-docgen/generic-id-ref: 1/4] gir: Resolve symbols in dependencies when parsing
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gi-docgen/generic-id-ref: 1/4] gir: Resolve symbols in dependencies when parsing
- Date: Sun, 22 Aug 2021 17:11:30 +0000 (UTC)
commit 781b31667daee9bc792f45c4ce2554017b83fe32
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Aug 22 18:05:12 2021 +0100
gir: Resolve symbols in dependencies when parsing
We want to have the mapping between symbols and types available in all
the dependencies by the time we finish parsing a GIR file.
gidocgen/gir/parser.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gidocgen/gir/parser.py b/gidocgen/gir/parser.py
index 92b3cbf..f477359 100644
--- a/gidocgen/gir/parser.py
+++ b/gidocgen/gir/parser.py
@@ -176,6 +176,8 @@ class GirParser:
repository = self._parse_tree(tree.getroot())
if repository is not None:
repository.girfile = girfile
+ repository.resolve_moved_to()
+ repository.resolve_symbols()
ns = repository.namespace
self._dependencies[ns.name] = repository
found = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]