feat: add support of internal children

This commit is contained in:
Gleb Smirnov 2022-01-22 09:42:49 +03:00
parent 1bd7c37061
commit 8a545d596b
No known key found for this signature in database
GPG key ID: 559DB6D1D625EFAB
3 changed files with 10 additions and 2 deletions

View file

@ -261,9 +261,11 @@ def decompile_object(ctx, gir, klass, id=None):
@decompiler("child")
def decompile_child(ctx, gir, type=None):
def decompile_child(ctx, gir, type=None, internal_child=None):
if type is not None:
ctx.print(f"[{type}]")
elif internal_child is not None:
ctx.print(f"[internal-child {internal_child}]")
return gir