mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Support template without parent
This commit is contained in:
parent
896dd7f824
commit
adc2be1454
5 changed files with 28 additions and 2 deletions
|
@ -97,7 +97,10 @@ def decompile_template(ctx: DecompileCtx, gir, klass, parent=None):
|
|||
else:
|
||||
return "$" + cname
|
||||
|
||||
ctx.print(f"template {class_name(klass)} : {class_name(parent)} {{")
|
||||
if parent is None:
|
||||
ctx.print(f"template {class_name(klass)} {{")
|
||||
else:
|
||||
ctx.print(f"template {class_name(klass)} : {class_name(parent)} {{")
|
||||
|
||||
ctx.template_class = klass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue