Renamed intention

This commit is contained in:
Valentin Kipyatkov
2015-04-29 18:19:09 +03:00
parent 2de466970d
commit d1afff1612
33 changed files with 120 additions and 120 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.ToInfixCallIntention
@@ -0,0 +1,3 @@
fun foo(x: Int) {
x.<caret>compareTo(1 + 2)
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
x compareTo 1 + 2
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
x.tim<caret>es(1)
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
x times 1
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun foo(num: Int) {
n<caret>um.times(1)
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
(x.<caret>times(1)).div(2)
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
(x times 1).div(2)
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
x.<caret>plus(1).minus(2)
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
(x plus 1).minus(2)
}
@@ -0,0 +1,7 @@
fun foo(x: Foo) {
x.<caret>foo { it * 2 }
}
trait Foo {
fun foo(f: (Int) -> Int)
}
@@ -0,0 +1,7 @@
fun foo(x: Foo) {
x foo { it * 2 }
}
trait Foo {
fun foo(f: (Int) -> Int)
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun foo(x: String?) {
x?.<caret>compareTo("1")
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun foo(x: Int) {
x.times(<caret>1)
}
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
trait Foo {
fun foo(a: Int, b: Int)
}
fun foo(x: Foo) {
x.<caret>foo(1, 2)
}
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
fun foo(x: Foo) {
x.<caret>foo(bar = x)
}
trait Foo {
fun foo(baz: Int = 0, bar: Foo? = null)
}
@@ -0,0 +1,3 @@
fun foo(x: String?) {
x!!.<caret>plus(1)
}
@@ -0,0 +1,3 @@
fun foo(x: String?) {
x!! plus 1
}
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
fun main() {
kotlin.io.<caret>println("")
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun foo(x: IntRange) {
x.<caret>start
}
@@ -0,0 +1,9 @@
// IS_APPLICABLE: false
class Foo {
fun foo(x: Int = 0, y: Int = 0) {
}
}
fun bar(baz: Foo) {
baz.<caret>foo(y = 1)
}
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
fun foo(x: Foo) {
x.<caret>foo(1) { it * 2 }
}
trait Foo {
fun foo(a: Int, f: (Int) -> Int)
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
x.<caret>times(1)
}
@@ -0,0 +1,3 @@
fun foo(x: Int) {
x times 1
}
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
package demo
fun foo(str: String) = kotlin.io.println(str)
fun main() {
<caret>demo.foo("")
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun foo(x: Int) {
x.<caret>toString()
}