SwapBinaryExpression: implementation cleaned up, tests renamed

#KT-4868 Fixed
This commit is contained in:
Andrey Breslav
2014-05-21 12:37:36 +04:00
parent acf1dc1912
commit 269e4ae828
14 changed files with 88 additions and 54 deletions
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
fun main() {
var mutablevar = 20
mutablevar = <caret>10
}
@@ -1,5 +1,3 @@
// IS_APPLICABLE: false
fun main() {
var mutablevar = 20
mutablevar = <caret>10
fun neq(a: Int, b: Int) {
if (a ==<caret> b) {}
}
@@ -0,0 +1,3 @@
fun neq(a: Int, b: Int) {
if (a ===<caret> b) {}
}
@@ -1,3 +1,3 @@
fun neq(a: Int, b: Int) {
if (a ==<caret> b) {}
if (b === a) {}
}
@@ -0,0 +1,3 @@
fun neq(a: Int, b: Int) {
if (a identityEquals<caret> b) {}
}
@@ -0,0 +1,3 @@
fun neq(a: Int, b: Int) {
if (b identityEquals a) {}
}
@@ -0,0 +1,3 @@
fun neq(a: Int, b: Int) {
if (<caret>b !== a) {}
}
@@ -1,4 +1,3 @@
// IS_APPLICABLE: false
fun neq(a: Int, b: Int) {
if (<caret>a !== b) {}
}
@@ -0,0 +1,3 @@
fun test(): Int {
return 1 <caret>+ 2 - 3
}
@@ -0,0 +1,3 @@
fun test(): Int {
return 2 + 1 - 3
}