4 Commits

Author SHA1 Message Date
Mikhail Pyltsin
d1ee298827 [java-highlighting] Refactoring for fallthrough
GitOrigin-RevId: 88bf0c45eb23406f29f693659c8495b286512d36
2023-07-05 20:46:12 +00:00
Nikita Eshkeev
97eaa6abb6 [java][switch] IDEA-273874 "Can't resolve symbol" false-negative in switch with fall-through semantics
Remove the SwitchBlockHighlightingModel#checkFallthroughReferences because it might produce too much noise for and bring no value.

GitOrigin-RevId: 10d848aaa38ad5a4c15f77726ac835ab517068d5
2021-07-28 19:15:33 +00:00
Nikita Eshkeev
e807464037 [java][switch] IDEA-273874 "Can't resolve symbol" false-negative in switch with fall-through semantics
Resolve as many references as possible in order to keep the GoToSymbol action available but move invalid references in pattern matching for switch to the highlighter pass as the code review suggests

GitOrigin-RevId: 2339b7c9cd02b0d1e3c793c30a8a3338c28c9b73
2021-07-26 08:04:43 +00:00
Nikita Eshkeev
196a98de7d [java][switch completion] IDEA-273874 "Can't resolve symbol" false-negative in switch with fall-through semantics
When resolving PsiSwitchLabelStatement check if it participates in the fall-through semantics and if so, stop resolving unless the previous PsiSwitchLabelStatement is of the "case null" form.

GitOrigin-RevId: 74af92cde51a8d8ec3bae1c2cd3819a09a44cdf9
2021-07-19 20:32:24 +00:00