mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Reuse resolve context with type eval context from the current inspection session for performance reasons
This commit is contained in:
@@ -70,7 +70,10 @@ public class PyProtectedMemberInspection extends PyInspection {
|
||||
if (name != null && name.startsWith("_") && !name.startsWith("__") && !name.endsWith("__")) {
|
||||
final PyClass parentClass = getClassOwner(node);
|
||||
if (parentClass != null) {
|
||||
final PsiReference reference = node.getReference();
|
||||
final PsiReference reference = node.getReference(resolveWithoutImplicits());
|
||||
if (reference == null) {
|
||||
return;
|
||||
}
|
||||
final PsiElement resolvedExpression = reference.resolve();
|
||||
final PyClass resolvedClass = getClassOwner(resolvedExpression);
|
||||
if (parentClass.isSubclass(resolvedClass))
|
||||
|
||||
Reference in New Issue
Block a user