forked from eclipse-jdt/eclipse.jdt.core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[javac] AST conversion for guarded record patterns
eg. ```java public class A { static void myMethod() { MyRecord myRecordInstance = new MyRecord(new ChildRecord(1)); switch (myRecordInstance) { case MyRecord(ChildRecord(int value)) when value /* <-- go to definition here */ == 1: System.out.println("asdf"); break; default: break; } } static record ChildRecord(int a) { } static record MyRecord(ChildRecord b) { } } ``` Signed-off-by: David Thompson <[email protected]>
- Loading branch information
1 parent
2bb0a2c
commit 47222c9
Showing
1 changed file
with
63 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters