mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 08:13:09 +07:00
Merge branch 'master' of git.labs.intellij.net:idea/community
This commit is contained in:
+3
-2
@@ -253,10 +253,11 @@ public class PsiDocMethodOrFieldRef extends CompositePsiElement implements PsiDo
|
||||
@NotNull
|
||||
public PsiElement[] getVariants(){
|
||||
final List<PsiModifierListOwner> vars = new ArrayList<PsiModifierListOwner>();
|
||||
final PsiElement scope = getScope();
|
||||
if (scope != null) {
|
||||
PsiClass scope = getScope();
|
||||
while (scope != null) {
|
||||
ContainerUtil.addAll(vars, getAllMethods(scope, PsiDocMethodOrFieldRef.this));
|
||||
ContainerUtil.addAll(vars, getAllVariables(scope, PsiDocMethodOrFieldRef.this));
|
||||
scope = scope.getContainingClass();
|
||||
}
|
||||
return vars.toArray(new PsiModifierListOwner[vars.size()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user