support Rename Reference on invalid method call (IDEA-176918)

This commit is contained in:
Anna.Kozlova
2017-08-08 17:42:39 +02:00
parent b846335cd0
commit 6d1f106889
11 changed files with 69 additions and 4 deletions
@@ -0,0 +1,6 @@
// "Rename reference" "true"
class c {
void () {
int i = i;
}
}
@@ -0,0 +1,12 @@
// "Rename reference" "true"
class c {
void foo(boolean b) {
if (b) {
int i = 0;
i++;
} else {
k++;
}
}
int k;
}
@@ -0,0 +1,12 @@
// "Rename reference" "true"
class FooInterface {
private int myInt;
}
class Foo {
float myFloat;
void buzz() {
myFloat + myFloat;
}
}
@@ -0,0 +1,9 @@
// "Rename reference" "true"
class Foo {
void buzz() {
buzz();
this.buzz(); //don't pay attention to same type qualifier
a.buzz();
}
}
@@ -8,4 +8,5 @@ class c {
i<caret>++;
}
}
int k;
}
@@ -4,6 +4,8 @@ class FooInterface {
}
class Foo {
float myFloat;
void buzz() {
myI<caret>nt + myInt;
}
@@ -0,0 +1,9 @@
// "Rename reference" "true"
class Foo {
void buzz() {
b<caret>ar();
this.bar(); //don't pay attention to same type qualifier
a.bar();
}
}