12 Commits (5e46c058cd6d0f61db59e6b8319e9cc30b947015)

Author SHA1 Message Date
Graham 5e46c058cd Improve structuring of if/else chains ending in a throw or return 5 years ago
Graham aa7f90ceb6 Prevent if statements in swapped else blocks from incorrectly chaining 5 years ago
Graham 17d9a51669 Use single line comment in IfElseTransformer 5 years ago
Graham 828b130906 Always iterate through the JavaParser tree in POSTORDER 5 years ago
Graham 6742120ab6 Simplify else if chains in POSTORDER 5 years ago
Graham a5e9a788e8 Use var in isIf/getIf 5 years ago
Graham f742aba80d Replace simple if condition swapping heuristic with a smarter one 5 years ago
Graham e202c4fcb9 Clone if/else arms before swapping them 5 years ago
Graham fcc053270d Remove NegateExprVisitor 5 years ago
Graham 12d3af48dd Add TernaryTransformer 5 years ago
Graham 27346725e3 Swap if arms if the condition is inverted 5 years ago
Graham 556923559c Add initial transformer for reducing nesting in long if/else chains 5 years ago