[java-highlighting] IDEA-325916 Get rid of deconstruction patterns with pattern variables.

Clean tests

GitOrigin-RevId: cb3ca829cabc9ab6e96f3ccb77d213896606c93e
This commit is contained in:
Mikhail Pyltsin
2023-07-20 16:42:40 +00:00
committed by intellij-monorepo-bot
parent dbb4b11cbe
commit f61c8612f9
12 changed files with 6 additions and 64 deletions
@@ -2,7 +2,7 @@ record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) s -> System.out.println(w<caret>);
case R(int w, int c) -> System.out.println(w<caret>);
default -> System.out.println()
}
}
@@ -2,7 +2,7 @@ record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int <caret>w, int c) s -> System.out.println(w);
case R(int <caret>w, int c) -> System.out.println(w);
default -> System.out.println()
}
}
@@ -1,9 +0,0 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) s -> System.out.println(s<caret>);
default -> System.out.println()
}
}
}
@@ -1,9 +0,0 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) <caret>s -> System.out.println(s);
default -> System.out.println()
}
}
}
@@ -2,7 +2,7 @@ record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) s when c<caret> > 0 -> System.out.println();
case R(int w, int c) when c<caret> > 0 -> System.out.println();
default -> System.out.println()
}
}
@@ -2,7 +2,7 @@ record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int <caret>c) s when c > 0 -> System.out.println();
case R(int w, int <caret>c) when c > 0 -> System.out.println();
default -> System.out.println()
}
}
@@ -1,9 +0,0 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) s when s<caret>.y() > 0 -> System.out.println();
default -> System.out.println()
}
}
}
@@ -1,9 +0,0 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) <caret>s when s.y() > 0 -> System.out.println();
default -> System.out.println()
}
}
}
@@ -2,7 +2,7 @@ record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) s:
case R(int w, int c):
System.out.println(c<caret>);
break;
default -> System.out.println()
@@ -2,7 +2,7 @@ record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int <caret>c) s:
case R(int w, int <caret>c):
System.out.println(c);
break;
default -> System.out.println()
@@ -1,11 +0,0 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) s:
System.out.println(s<caret>);
break;
default -> System.out.println()
}
}
}
@@ -1,11 +0,0 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
switch(o){
case R(int w, int c) <caret>s:
System.out.println(s);
break;
default -> System.out.println()
}
}
}