unused declaration: fix for references from local var type (IDEA-199400)

This commit is contained in:
Dmitry Batkovich
2018-09-25 17:18:14 +03:00
parent c5531439e8
commit 59a9dca3fc
4 changed files with 21 additions and 0 deletions

View File

@@ -84,6 +84,12 @@ public class RefJavaUtilImpl extends RefJavaUtil {
}
}
@Override
public boolean visitVariable(@NotNull UVariable node) {
visitTypeRefs(node.getType());
return false;
}
@Override
public boolean visitSimpleNameReferenceExpression(@NotNull USimpleNameReferenceExpression node) {
final PsiElement target = node.resolve();