mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
WIP: Add gir.PartialClass
This commit is contained in:
parent
632e9d7df6
commit
6fdb12fd5d
17 changed files with 231 additions and 147 deletions
|
@ -42,7 +42,8 @@ class UI(AstNode, Scope):
|
|||
self._gir_errors = []
|
||||
|
||||
try:
|
||||
gir_ctx.add_namespace(self.children[GtkDirective][0].gir_namespace)
|
||||
if ns := self.children[GtkDirective][0].gir_namespace:
|
||||
gir_ctx.add_namespace(ns)
|
||||
except CompileError as e:
|
||||
self._gir_errors.append(e)
|
||||
|
||||
|
@ -70,7 +71,7 @@ class UI(AstNode, Scope):
|
|||
xml.end_tag()
|
||||
|
||||
return {
|
||||
id: ScopeVariable(id, obj.gir_class, lambda xml, id=id: emit_xml(xml, id), obj.glib_type_name)
|
||||
id: ScopeVariable(id, obj.gir_class, lambda xml, id=id: emit_xml(xml, id))
|
||||
for id, obj in self.objects_by_id.items()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue