mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PyType.getCompletionVariants() takes location as PsiElement, not PyExpression
This commit is contained in:
@@ -165,5 +165,5 @@ public interface PyClass extends PsiNameIdentifierOwner, PyStatement, NameDefine
|
||||
String getDocStringValue();
|
||||
|
||||
boolean processClassLevelDeclarations(@NotNull PsiScopeProcessor processor);
|
||||
boolean processInstanceLevelDeclarations(@NotNull PsiScopeProcessor processor, @Nullable PyExpression location);
|
||||
boolean processInstanceLevelDeclarations(@NotNull PsiScopeProcessor processor, @Nullable PsiElement location);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.jetbrains.python.psi.types;
|
||||
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.util.ProcessingContext;
|
||||
import com.jetbrains.python.psi.AccessDirection;
|
||||
import com.jetbrains.python.psi.PyExpression;
|
||||
@@ -37,11 +38,12 @@ public interface PyType {
|
||||
/**
|
||||
* Proposes completion variants from type's attributes.
|
||||
*
|
||||
*
|
||||
* @param location the reference on which the completion was invoked
|
||||
* @param context to share state between nested invocations
|
||||
* @return completion variants good for {@link com.intellij.psi.PsiReference#getVariants} return value.
|
||||
*/
|
||||
Object[] getCompletionVariants(String completionPrefix, PyExpression location, ProcessingContext context);
|
||||
Object[] getCompletionVariants(String completionPrefix, PsiElement location, ProcessingContext context);
|
||||
|
||||
/**
|
||||
* Context key for access to a set of names already found by variant search.
|
||||
|
||||
Reference in New Issue
Block a user