Optimize isReferenceTo() when searching for PsiMethod usages

Avoid resolving references when we know from context that a reference
at given location can't resolve to a PsiMethod.
This commit is contained in:
Dmitry Jemerov
2017-03-24 18:39:29 +01:00
parent e3f0a604d1
commit f255f2a1e0
7 changed files with 59 additions and 0 deletions
@@ -0,0 +1,4 @@
fun unaryClient() {
val u1 = UnaryNot()
val u2 = !u1
}