mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
don't hold AST during implicit toString search
GitOrigin-RevId: 56a10e873c0c38f423ae45c23f2f55260ddf2b52
This commit is contained in:
committed by
intellij-monorepo-bot
parent
274387096d
commit
93bf815451
@@ -4,6 +4,7 @@ package com.intellij.psi.search.searches;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.search.SearchScope;
|
||||
import com.intellij.util.Query;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ImplicitToStringSearch extends ExtensibleQueryFactory<PsiExpression, ImplicitToStringSearch.SearchParameters> {
|
||||
@@ -31,7 +32,9 @@ public class ImplicitToStringSearch extends ExtensibleQueryFactory<PsiExpression
|
||||
}
|
||||
|
||||
public static Query<PsiExpression> search(@NotNull PsiMethod targetMethod, @NotNull SearchScope scope) {
|
||||
return INSTANCE.createUniqueResultsQuery(new SearchParameters(targetMethod, scope));
|
||||
return INSTANCE.createUniqueResultsQuery(new SearchParameters(targetMethod, scope),
|
||||
ContainerUtil.canonicalStrategy(),
|
||||
SmartPointerManager::createPointer);
|
||||
}
|
||||
|
||||
public static boolean isToStringMethod(@NotNull PsiElement element) {
|
||||
|
||||
Reference in New Issue
Block a user