IJPL-161383 mark registerSearcherForTesting as internal

GitOrigin-RevId: 67b145b6687ad8744f728e3f21dfcb065f1569d6
This commit is contained in:
Max Medvedev
2024-09-12 10:55:22 +02:00
committed by intellij-monorepo-bot
parent 7254afe24a
commit fa779374dd
2 changed files with 1 additions and 2 deletions

View File

@@ -102,8 +102,6 @@ f:com.intellij.psi.impl.search.CachesBasedRefSearcher
- com.intellij.openapi.application.QueryExecutorBase
- <init>():V
- processQuery(com.intellij.psi.search.searches.ReferencesSearch$SearchParameters,com.intellij.util.Processor):V
f:com.intellij.psi.impl.search.HelperKt
- sf:registerSearcherForTesting(java.lang.Class,com.intellij.model.search.Searcher,com.intellij.openapi.Disposable):V
com.intellij.psi.impl.search.IndexPatternBuilder
- sf:EP_NAME:com.intellij.openapi.extensions.ExtensionPointName
- getCharsAllowedInContinuationPrefix(com.intellij.psi.tree.IElementType):java.lang.String

View File

@@ -37,6 +37,7 @@ internal fun <R : Any> searchers(parameters: SearchParameters<R>): List<Searcher
return searchersExtension.forKey(parameters.javaClass) as List<Searcher<SearchParameters<R>, R>>
}
@Internal
@TestOnly
fun registerSearcherForTesting(key: Class<*>, searcher: Searcher<*, *>, parentDisposable: Disposable) {
if (!ApplicationManager.getApplication().isUnitTestMode) throw IllegalStateException()