mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
PsiShortNamesCache.getAllClassNames: restore compatibility with Kotlin 1.3.31-release-IJ2019.2-1 plugin.
GitOrigin-RevId: 3964ebb77d005d98fde8bf6fa33751fd3c0de26f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
409383435f
commit
4352ee62e3
@@ -9,9 +9,12 @@ import com.intellij.psi.PsiField;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiMethod;
|
||||
import com.intellij.util.ArrayUtilRt;
|
||||
import com.intellij.util.CommonProcessors;
|
||||
import com.intellij.util.Processor;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.util.containers.HashSet;
|
||||
import com.intellij.util.indexing.IdFilter;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -80,6 +83,19 @@ public abstract class PsiShortNamesCache {
|
||||
return ContainerUtil.process(getAllClassNames(), processor);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the names of all classes in the project and (optionally) libraries
|
||||
* to the specified set.
|
||||
*
|
||||
* @param dest the set to add the names to.
|
||||
* @deprecated use {@link #processAllClassNames}
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2020.1")
|
||||
public void getAllClassNames(@NotNull HashSet<String> dest) {
|
||||
processAllClassNames(new CommonProcessors.CollectProcessor<>(dest));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of all methods with the specified name in the specified scope.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user