Commit Graph

25 Commits

Author SHA1 Message Date
Roman Shevchenko 6f7e4784f3 [java] value break ref inside switch expression always resolves to a variable (IDEA-204204)
... even when a switch expression is not an innermost context of the break
2018-12-17 18:49:16 +01:00
Anna.Kozlova b4d7bd2bcf switch expression: missed error on continue without lbl outside of switch (IDEA-204208) 2018-12-13 18:01:51 +01:00
Anna.Kozlova 67422555d5 switch expression: fix typo in type calculation (IDEA-204188) 2018-12-13 18:01:51 +01:00
Tagir Valeev 244c7f0164 IDEA-203812 bad code green: switch expression does not have any case clauses 2018-12-08 16:56:57 +07:00
Anna.Kozlova 6692c339e1 switch expression: display dedicated error on target type void (IDEA-203776) 2018-12-07 20:13:41 +01:00
Anna.Kozlova 3cd2baac99 switch expression: correct enhanced old-style result expression calculus
IDEA-CR-40239
2018-12-04 10:44:23 +01:00
Anna.Kozlova 569d069304 fix testdata 2018-12-03 15:27:44 +01:00
Anna.Kozlova 9080b35751 switch expression: support old syntax without braces
IDEA-CR-40239
2018-11-30 16:28:02 +01:00
Anna.Kozlova 1658b14f3c switch expressions: check old style breaks & switch chains during compatibility checks
IDEA-CR-40239
2018-11-22 18:31:25 +01:00
Pavel Dolgov 153535ef9a Java: Highlight switch expressions that don't produce the result on some execution path (IDEA-202621) 2018-11-22 16:13:48 +03:00
Roman Shevchenko 5a14893607 [tests] extends value breaks highlighting test case 2018-11-21 19:26:03 +01:00
Anna.Kozlova a7eefcd5ae switch expressions: report bad result expression types
if they are not convertible to poly expression target type
2018-11-21 18:51:47 +01:00
Pavel Dolgov 9fc8a64cd6 Java: Extend control flow analysis to support enhanced switch & switch expression, including break-with-value (IDEA-202131) 2018-11-21 18:49:01 +03:00
Anna.Kozlova c7ce9a1a8c switch expressions: inference for value breaks, correct lambda context in result expressions 2018-11-21 15:54:15 +01:00
Anna.Kozlova b015644d7a get rid of redundant space in error message 2018-11-21 15:54:15 +01:00
Roman Shevchenko d50cffbf0f [java] value breaks: basic highlighting (IDEA-196643) 2018-11-20 18:57:22 +01:00
Anna.Kozlova f32caada92 switch expression: inference for result expression fixed; more testdata on overload resolution 2018-11-20 10:56:11 +01:00
Pavel Dolgov cdee0f85e5 Java: Extend control flow analysis to support enhanced switch & switch expression. No break-with-value yet (IDEA-202131) 2018-11-19 17:26:28 +03:00
Anna.Kozlova c3bc7e3461 switch expression type: initial 2018-11-19 11:25:18 +01:00
Roman Shevchenko 2b84e80868 [java] switch expressions: basic highlighting (IDEA-196643) 2018-11-13 13:28:15 +01:00
Roman Shevchenko 193aa1f2cf [tests] more cases for enhanced switch statements highlighting tests 2018-11-13 13:27:30 +01:00
Roman Shevchenko 14bc258e3f [java] restores multifaceted switch labels support (parser/PSI + basic highlighting) 2018-11-09 18:22:32 +01:00
Roman Shevchenko 5740f632e6 [java] reverts multifaceted switch labels support 2018-11-08 21:24:31 +01:00
Roman Shevchenko dca9f4a33d [java] multifaceted switch labels: basic highlighting (IDEA-196643) 2018-11-08 17:11:20 +01:00
Roman Shevchenko 5d10b37246 [java] enhanced 'switch' statements: basic highlighting (IDEA-196643) 2018-11-02 18:22:34 +01:00