Skip to content

Commit 4740af7

Browse files
Fix navigation to method calls within lambdas and static initializers (#308)
* Fix for static initializers * Bug fixes * Migrate to JavaParser * Add lambda support * Switch to RAW language level so its language level agnostic * Checkstyle * Checkstyle * Gracefully handle parsing errors * Bug fixes * Don't assume lambda method names will match JVM format * Use LineIndexer * Skip tokens that don't have a range * Checkstyle * Bug fix * Handle more edge cases * Minor code cleanup * checkstyle * Fix issue with method overloads --------- Co-authored-by: supersaiyansubtlety <[email protected]>
1 parent 1e3f631 commit 4740af7

File tree

5 files changed

+431
-14
lines changed

5 files changed

+431
-14
lines changed

enigma/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies {
1212
implementation libs.vineflower
1313
implementation libs.cfr
1414
implementation libs.procyon
15+
implementation libs.javaparser
1516

1617
implementation libs.quilt.config
1718

enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/entry/ClassEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public String getSourceRemapName() {
6464
@Override
6565
public String getContextualName() {
6666
if (this.isInnerClass()) {
67-
return this.parent.getSimpleName() + "$" + this.name;
67+
return this.parent.getContextualName() + "$" + this.name;
6868
}
6969

7070
return this.getSimpleName();

0 commit comments

Comments
 (0)