[java-completion] IDEA-302003 Complete statement keywords after switch rule arrow

GitOrigin-RevId: 2a9f1b3deb68145bbe4fbfa42e45432e6281a41d
This commit is contained in:
Tagir Valeev
2022-09-19 11:16:47 +02:00
committed by intellij-monorepo-bot
parent 547ba1f6fe
commit 269d17c850
10 changed files with 138 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
class Main {
void test(int x) {
switch(x) {
case 1 -> if<caret>
}
}
}

View File

@@ -0,0 +1,10 @@
class Main {
void test(int x) {
switch(x) {
case 1 -> {
if (<caret>)
}
}
}
}

View File

@@ -0,0 +1,8 @@
class Main {
void test(int x) {
switch(x) {
case 1 -> retu<caret>
}
}
}

View File

@@ -0,0 +1,8 @@
class Main {
int test(int x) {
switch(x) {
case 1 -> retu<caret>
}
}
}

View File

@@ -0,0 +1,10 @@
class Main {
int test(int x) {
switch(x) {
case 1 -> {
return <caret>
}
}
}
}

View File

@@ -0,0 +1,10 @@
class Main {
void test(int x) {
switch(x) {
case 1 -> {
return;<caret>
}
}
}
}

View File

@@ -0,0 +1,8 @@
class Main {
void test(int x) {
switch(x) {
case 1 -> thro<caret>
}
}
}

View File

@@ -0,0 +1,8 @@
class Main {
void test(int x) {
switch(x) {
case 1 -> throw <caret>
}
}
}