Do not apply ExpressionSurrounders for expressions with Unit type and for call expressions inside qualified expression

This commit is contained in:
Natalia.Ukhorskaya
2013-02-18 16:18:12 +04:00
parent 98306c1c54
commit c11be77aa1
12 changed files with 165 additions and 8 deletions
@@ -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
@@ -0,0 +1,3 @@
import <selection>kotlin</selection>.io
// IS_APPLICABLE: false
@@ -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
@@ -0,0 +1,6 @@
fun foo() {
val a = ""
a.<selection>charAt</selection>(1)
}
// IS_APPLICABLE: false
@@ -0,0 +1,6 @@
fun foo() {
val a = ""
a.<selection>charAt(1)</selection>
}
// IS_APPLICABLE: false