KotlinAnnotatedElementsSearcher optimization

When possible, try to resolve references in types using only the PSI
without building the full resolve session.
This commit is contained in:
Dmitry Jemerov
2017-02-10 18:15:36 +01:00
parent b9809566e6
commit 296fe698b8
10 changed files with 484 additions and 10 deletions
@@ -0,0 +1,16 @@
package foo.bar
class A
object F {
class foo {
class bar {
annotation class A
@foo.bar.A fun test(): Nothing = TODO()
}
}
}
// ANNOTATION: foo.bar.F.foo.bar.A
// SEARCH: method:test