Do not apply ExpressionSurrounders for expressions with Unit type and for call expressions inside qualified expression
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
fun foo() {
|
||||
<selection>if (1 == 2) {}</selection>
|
||||
}
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
@@ -0,0 +1,3 @@
|
||||
import <selection>kotlin</selection>
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import <selection>kotlin</selection>.io
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import kotlin.<selection>io</selection>
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
@@ -0,0 +1,3 @@
|
||||
package <selection>foo</selection>
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo(<selection>a</selection>: Int) {}
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo(<selection>a: Int</selection>) {}
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
val a = ""
|
||||
a.<selection>charAt</selection>(1)
|
||||
}
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
val a = ""
|
||||
a.<selection>charAt(1)</selection>
|
||||
}
|
||||
|
||||
// IS_APPLICABLE: false
|
||||
Reference in New Issue
Block a user