KT-5292 Expand selection should have kdoc + method as a stop point
KT-3947 Extend selection works badly with comment #KT-5292 Fixed #KT-3947 Fixed
This commit is contained in:
@@ -10,7 +10,7 @@ fun main(args : Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
<selection>fun foo() : Unit {
|
||||
fun foo() : Unit <selection>{
|
||||
println() {
|
||||
println()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<selection>fun main(args : Array<String>) {
|
||||
fun main(args : Array<String>) {
|
||||
for (i in 1..100) {
|
||||
when {
|
||||
i%3 == 0 -> {print("Fizz"); continue;}
|
||||
@@ -10,7 +10,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
fun foo() : Unit {
|
||||
<selection>fun foo() : Unit {
|
||||
println() {
|
||||
println()
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<selection>fun main(args : Array<String>) {
|
||||
for (i in 1..100) {
|
||||
when {
|
||||
i%3 == 0 -> {print("Fizz"); continue;}
|
||||
i%5 == 0 -> {print("Buzz"); continue;}
|
||||
|
||||
(i%3 != 0 && i%5 != 0) -> {print(i); continue;}
|
||||
else -> println()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun foo() : Unit {
|
||||
println() {
|
||||
println()
|
||||
|
||||
|
||||
pr<caret>intln()
|
||||
println()
|
||||
}
|
||||
|
||||
println(array(1, 2, 3))
|
||||
println()
|
||||
}</selection>
|
||||
@@ -17,8 +17,8 @@ fun foo() : Unit {
|
||||
|
||||
pr<caret>intln()
|
||||
println()
|
||||
}
|
||||
</selection>
|
||||
}</selection>
|
||||
|
||||
println(array(1, 2, 3))
|
||||
println()
|
||||
}
|
||||
@@ -11,7 +11,7 @@ fun main(args : Array<String>) {
|
||||
}
|
||||
|
||||
fun foo() : Unit {
|
||||
<selection> println() {
|
||||
println() <selection>{
|
||||
println()
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ fun foo() : Unit {
|
||||
pr<caret>intln()
|
||||
println()
|
||||
}
|
||||
|
||||
</selection>
|
||||
println(array(1, 2, 3))
|
||||
println()
|
||||
</selection>}
|
||||
}
|
||||
@@ -10,8 +10,8 @@ fun main(args : Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
fun foo() : Unit <selection>{
|
||||
println() {
|
||||
fun foo() : Unit {
|
||||
<selection> println() {
|
||||
println()
|
||||
|
||||
|
||||
@@ -21,4 +21,4 @@ fun foo() : Unit <selection>{
|
||||
|
||||
println(array(1, 2, 3))
|
||||
println()
|
||||
}</selection>
|
||||
</selection>}
|
||||
Reference in New Issue
Block a user