mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
Pattern variable can be used mass cleanup
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
This commit is contained in:
committed by
intellij-monorepo-bot
parent
daaa8e8930
commit
f456ed0604
@@ -215,8 +215,7 @@ public final class NameResolverTools {
|
||||
|
||||
@Override
|
||||
public boolean value(final PsiElement element) {
|
||||
if (element instanceof PyCallExpression) {
|
||||
PyCallExpression callExpression = (PyCallExpression)element;
|
||||
if (element instanceof PyCallExpression callExpression) {
|
||||
return isCalleeShortCut(callExpression, myNameToSearch);
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -113,8 +113,7 @@ public interface PyCallExpression extends PyCallSiteExpression {
|
||||
@Nullable
|
||||
default PyExpression getKeywordArgument(@NotNull String keyword) {
|
||||
for (PyExpression arg : getArguments()) {
|
||||
if (arg instanceof PyKeywordArgument) {
|
||||
final PyKeywordArgument keywordArg = (PyKeywordArgument)arg;
|
||||
if (arg instanceof PyKeywordArgument keywordArg) {
|
||||
if (keyword.equals(keywordArg.getKeyword())) {
|
||||
return keywordArg.getValueExpression();
|
||||
}
|
||||
|
||||
@@ -49,9 +49,7 @@ class TypeEvalConstraints {
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (!(o instanceof TypeEvalConstraints)) return false;
|
||||
|
||||
TypeEvalConstraints that = (TypeEvalConstraints)o;
|
||||
if (!(o instanceof TypeEvalConstraints that)) return false;
|
||||
|
||||
return myAllowDataFlow == that.myAllowDataFlow &&
|
||||
myAllowStubToAST == that.myAllowStubToAST &&
|
||||
|
||||
Reference in New Issue
Block a user