feat: parse and use Kotlin metadata for renames (#1861)(PR #1860)

* initial setup for data class and metadata parsing
* bug fix & comments
* better version using plugin system
* added tests
* ignore getters test fix
* logs & imports
* reverted accidental changes
* moved util classes to plugin, spotless apply
* move test and some other minor fixes

---------

Co-authored-by: Skylot <skylot@gmail.com>
This commit is contained in:
Krzysztof Iwaniuk
2023-05-14 22:34:40 +02:00
committed by GitHub
parent 3474f0da04
commit ccdbb1d62c
42 changed files with 1328 additions and 327 deletions
@@ -22,6 +22,7 @@ public class AccessFlags {
public static final int MODULE = 0x8000;
public static final int CONSTRUCTOR = 0x10000;
public static final int DECLARED_SYNCHRONIZED = 0x20000;
public static final int DATA = 0x40000;
public static boolean hasFlag(int flags, int flagValue) {
return (flags & flagValue) != 0;
@@ -85,6 +86,9 @@ public class AccessFlags {
if (hasFlag(flags, ENUM)) {
code.append("enum ");
}
if (hasFlag(flags, DATA)) {
code.append("data ");
}
break;
}
if (hasFlag(flags, SYNTHETIC)) {