Graham
f38253f2fc
Add else branch to non-exhaustive when statements
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
f143eef142
Move Kotlin files from src/{main,test}/java to src/{main,test}/kotlin
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ce5b76ef0f
Rename dev.openrs2 package to org.openrs2
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
232ba32bbd
Enable explicit API mode
...
This already caught some cases of public members that should have been
private and one case where the inferred type was too specific.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
2acbfdce48
Add divide support to IdentityTransformer
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
222323eaa0
Add AssignExpr support to IdentityTransformer
...
It can now simplify expressions like `x += 0`.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
880be759b7
Use smart casts in the AST deobfuscator
...
Many of the old is/as calls were left over from the original Java code.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
a87a289c49
Add duplicate class name support to the AST deobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
3c9edb0291
Use dependency injection in the AST deobfuscator
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
597aa2018e
Add support for whole program AST transforms
4 years ago
Graham
0a988584b7
Convert some deob-ast methods to extension methods
4 years ago
Graham
5487a74eb8
Remove traversal argument from walk extension method
4 years ago
Graham
ab75a2f0c9
Add IdentityTransformer
4 years ago