mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] follow-up (IDEA-153785)
This commit is contained in:
+8
-2
@@ -92,14 +92,20 @@ class FromStringLightElement extends LightElement {
|
||||
}
|
||||
|
||||
PsiClass containingClass = myMethod.getContainingClass();
|
||||
for (PsiTypeParameter parameter : containingClass == null ? PsiTypeParameter.EMPTY_ARRAY : containingClass.getTypeParameters()) {
|
||||
if (!ResolveUtil.processElement(processor, parameter, state)) return false;
|
||||
if (containingClass != null) {
|
||||
PsiTypeParameter[] parameters = containingClass.getTypeParameters();
|
||||
for (PsiTypeParameter parameter : parameters) {
|
||||
if (!ResolveUtil.processElement(processor, parameter, state)) return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!GroovyImportHelper.processImplicitImports(processor, state, lastParent, place, myFile)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Suppose place is 'MyClass<T>' and MyClass belongs to default package.
|
||||
// This reference will not be resolved, because context has no parents (it has no parents at all.
|
||||
// See com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.OurGenericsResolver.resolve()
|
||||
if (place instanceof PsiQualifiedReference) {
|
||||
PsiQualifiedReference reference = (PsiQualifiedReference)place;
|
||||
if (reference.getQualifier() == null && reference.getReferenceName() != null) {
|
||||
|
||||
Reference in New Issue
Block a user