Extend range of "use expression body" to left brace..end of return

Range is extended iff we are in DO_NOT_SHOW case,
otherwise just return is highlighted to avoid ugly highlighting
So #KT-19771 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-12-27 15:01:39 +03:00
parent 95e7d29743
commit e10fa218f5
4 changed files with 32 additions and 2 deletions
@@ -0,0 +1,7 @@
// HIGHLIGHT: INFORMATION
// PROBLEM: Use expression body instead of return
fun simple(): Int {<caret>
return 1 *
(2 + 3)
}
@@ -0,0 +1,5 @@
// HIGHLIGHT: INFORMATION
// PROBLEM: Use expression body instead of return
fun simple(): Int = 1 *
(2 + 3)