mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 20:30:42 +07:00
re-implement java global inspection graph using uast (fix processing class type parameters)
This commit is contained in:
@@ -40,7 +40,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
for (UElement element : findIn) {
|
||||
if (element == null) continue;
|
||||
element.accept(new AbstractUastVisitor() {
|
||||
@Override
|
||||
|
||||
public boolean visitAnnotation(@NotNull UAnnotation node) {
|
||||
PsiClass javaClass = node.resolve();
|
||||
if (javaClass != null) {
|
||||
@@ -253,6 +253,9 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
|
||||
@Override
|
||||
public boolean visitClass(@NotNull UClass uClass) {
|
||||
for (UTypeReferenceExpression type : uClass.getUastSuperTypes()) {
|
||||
type.accept(this);
|
||||
}
|
||||
RefClassImpl refClass = (RefClassImpl)refFrom.getRefManager().getReference(uClass.getSourcePsi());
|
||||
refFrom.addReference(refClass, uClass.getSourcePsi(), decl, false, true, null);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user