Skip to content

Commit

Permalink
Support temporary say attributes and say arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Feb 15, 2020
1 parent 894f52e commit bb94216
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions decompiler/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ def say_get_code(ast, inmenu=False):
if hasattr(ast, 'attributes') and ast.attributes is not None:
rv.extend(ast.attributes)

if hasattr(ast, 'temporary_attributes') and ast.temporary_attributes is not None:
rv.append("@")
rv.extend(ast.temporary_attributes)

# no dialogue_filter applies to us

rv.append(encode_say_string(ast.what))
Expand All @@ -492,4 +496,7 @@ def say_get_code(ast, inmenu=False):
rv.append("with")
rv.append(ast.with_)

if hasattr(ast, 'arguments') and ast.arguments is not None:
rv.append(reconstruct_arginfo(ast.arguments))

return " ".join(rv)

0 comments on commit bb94216

Please sign in to comment.