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,7 @@
// PSI_ELEMENT: com.intellij.psi.PsiMethod
// OPTIONS: usages
public class UnaryNot {
public UnaryNot <caret>not() {
return this;
}
}