References: Support implicit references to annotation method 'value'. Support Find Usages/Rename on these references

#KT-12657 Fixed
(cherry picked from commit 68d0d84)
This commit is contained in:
Alexey Sedunov
2016-06-21 18:03:21 +03:00
parent efa27e6048
commit 89816c5f12
23 changed files with 316 additions and 5 deletions
@@ -0,0 +1,13 @@
package test;
public @interface JAnn {
String valueNew();
}
class Test {
@JAnn(valueNew = "abc")
void test1() { }
@JAnn(valueNew = "abc")
void test2() { }
}
@@ -0,0 +1,7 @@
package test
@JAnn(valueNew = "abc")
fun test1() {}
@JAnn(valueNew = "abc")
fun test2() {}
@@ -0,0 +1,13 @@
package test;
public @interface JAnn {
String /*rename*/value();
}
class Test {
@JAnn("abc")
void test1() { }
@JAnn(value = "abc")
void test2() { }
}
@@ -0,0 +1,7 @@
package test
@JAnn("abc")
fun test1() {}
@JAnn(value = "abc")
fun test2() {}
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test/JAnn.java",
"newName": "valueNew",
"withRuntime": "true"
}