"Merge 'if's" intention: do not remove nested comments

#KT-33258 Fixed
#KT-39552 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-11-12 12:22:52 +09:00
committed by igoriakovlev
parent f6e70cfed8
commit 9ff7539ff0
7 changed files with 66 additions and 1 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
fun foo() {
// comment 1
<caret>if (/* comment 2 */ true && false /* comment 3 */) {
/* comment 2 */
/* comment 3 */
<caret>if (true && false) {
// comment 4
foo()
}
+11
View File
@@ -0,0 +1,11 @@
fun foo() {
// comment1
<caret>if (true) /* comment2 */ /* comment3 */ {
// comment4
// comment5
if (false) {
}
// comment6
// comment7
}
}
+11
View File
@@ -0,0 +1,11 @@
fun foo() {
// comment1
/* comment2 */
/* comment3 */
// comment4
// comment5
// comment6
// comment7
<caret>if (true && false) {
}
}
+8
View File
@@ -0,0 +1,8 @@
fun foo() {
// comment1
<caret>if (true)
// comment2
// comment3
if (false) {
}
}
+7
View File
@@ -0,0 +1,7 @@
fun foo() {
// comment1
// comment2
// comment3
<caret>if (true && false) {
}
}