mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed regression in resolving 'namedtuple' members
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package com.jetbrains.python.psi.types;
|
||||
|
||||
import com.jetbrains.python.psi.AccessDirection;
|
||||
import com.jetbrains.python.psi.PyExpression;
|
||||
import com.jetbrains.python.psi.resolve.PyResolveContext;
|
||||
import com.jetbrains.python.psi.resolve.RatedResolveResult;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -19,5 +23,9 @@ public interface PyClassLikeType extends PyCallableType {
|
||||
@NotNull
|
||||
List<PyClassLikeType> getSuperClassTypes(@NotNull TypeEvalContext context);
|
||||
|
||||
@Nullable
|
||||
List<? extends RatedResolveResult> resolveMember(@NotNull final String name, @Nullable PyExpression location, AccessDirection direction,
|
||||
PyResolveContext resolveContext, boolean inherited);
|
||||
|
||||
boolean isValid();
|
||||
}
|
||||
|
||||
@@ -26,14 +26,13 @@ public interface PyType {
|
||||
* @param location the expression of type qualifierType on which the member is being resolved (optional)
|
||||
* @param direction
|
||||
* @param resolveContext
|
||||
* @param inherited look up inherited members and members provided by class providers
|
||||
* @return null if name definitely cannot be found (e.g. in a qualified reference),
|
||||
* or an empty list if name is not found but other contexts are worth looking at,
|
||||
* or a list of elements that define the name, a la multiResolve().
|
||||
*/
|
||||
@Nullable
|
||||
List<? extends RatedResolveResult> resolveMember(@NotNull final String name, @Nullable PyExpression location, AccessDirection direction,
|
||||
PyResolveContext resolveContext, boolean inherited);
|
||||
PyResolveContext resolveContext);
|
||||
|
||||
/**
|
||||
* Proposes completion variants from type's attributes.
|
||||
|
||||
Reference in New Issue
Block a user