CensoredUsername / unrpyc

A ren'py script decompiler
Other
864 stars 157 forks source link

Extraneous pass statement inserted after call #22

Closed jackmcbarn closed 9 years ago

jackmcbarn commented 9 years ago

Minimal test case:

label foo:
    call bar
label bar:
    return

When compiled and decompiled, here's the result:

label foo:
    call bar
    pass
label bar:
    return

Every successive compilation and decompilation causes an additional "pass" statement to be inserted.

CensoredUsername commented 9 years ago

This should be fixed by 29f76178976ec65396c5ca7e059804aae47d5282

Renpy would always insert an extra pass node or label node after a call node. With this commit the extra pass will not be printed or the extra label will be transformed into the call name from here syntax.