Code completion updates for enhanced switches (IDEA-202340)

- Support inside switch expression
- Support rule-based labels
- Support break inside expression
- Suggest 'switch' keyword in expressions
- Insert ':' or '->' depending on the switch type
This commit is contained in:
Tagir Valeev
2018-12-08 16:27:58 +07:00
parent 86e1009135
commit 6ea7ea44c2
20 changed files with 208 additions and 36 deletions

View File

@@ -0,0 +1,9 @@
public class ConstConfig {
{
switch (a) {
case Foooo -> {}
def<caret>
}
}
}