Commit 07e31878 authored by Anna.Kozlova's avatar Anna.Kozlova
Browse files

test only: check method references (IDEA-164989)

parent 7431c27f
Showing with 8 additions and 0 deletions
+8 -0
......@@ -59,6 +59,14 @@ public class TestOnlyInspection extends BaseJavaBatchLocalInspectionTool {
validate(e, e.resolveMethod(), h);
}
@Override
public void visitMethodReferenceExpression(PsiMethodReferenceExpression expression) {
PsiElement resolve = expression.resolve();
if (resolve instanceof PsiMethod) {
validate(expression, (PsiMethod)resolve, h);
}
}
@Override
public void visitReferenceExpression(PsiReferenceExpression reference) {
PsiElement resolve = reference.resolve();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment