Skip to content

Semicolon-less formatting can sometimes generate invalid code #38

Description

@colinator27

Describe the bug
When semicolons are disabled in the decompiler, it can sometimes produce code that cannot be compiled, or has different meaning.

To Reproduce
Example code that does this:

return a
(b ? c : d).e = 123

There's other cases of this too, such as some involving ({}), and ++/--.

Expected behavior
Semicolons should probably be forcibly inserted in these situations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdecompilerInvolves the decompiler

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions