201: Processor<String> -> Processor<in String> in PsiShortNamesCache
This commit is contained in:
@@ -48,13 +48,13 @@ class KotlinShortNamesCache(private val project: Project) : PsiShortNamesCache()
|
||||
|
||||
//region Classes
|
||||
|
||||
override fun processAllClassNames(processor: Processor<String>): Boolean {
|
||||
override fun processAllClassNames(processor: StringProcessor): Boolean {
|
||||
if (disableSearch.get()) return true
|
||||
return KotlinClassShortNameIndex.getInstance().processAllKeys(project, processor) &&
|
||||
KotlinFileFacadeShortNameIndex.INSTANCE.processAllKeys(project, processor)
|
||||
}
|
||||
|
||||
override fun processAllClassNames(processor: Processor<String>, scope: GlobalSearchScope, filter: IdFilter?): Boolean {
|
||||
override fun processAllClassNames(processor: StringProcessor, scope: GlobalSearchScope, filter: IdFilter?): Boolean {
|
||||
if (disableSearch.get()) return true
|
||||
return processAllClassNames(processor)
|
||||
}
|
||||
@@ -149,7 +149,7 @@ class KotlinShortNamesCache(private val project: Project) : PsiShortNamesCache()
|
||||
|
||||
//region Methods
|
||||
|
||||
override fun processAllMethodNames(processor: Processor<String>, scope: GlobalSearchScope, filter: IdFilter?): Boolean {
|
||||
override fun processAllMethodNames(processor: StringProcessor, scope: GlobalSearchScope, filter: IdFilter?): Boolean {
|
||||
if (disableSearch.get()) return true
|
||||
return processAllMethodNames(processor)
|
||||
}
|
||||
@@ -161,7 +161,7 @@ class KotlinShortNamesCache(private val project: Project) : PsiShortNamesCache()
|
||||
}
|
||||
}
|
||||
|
||||
private fun processAllMethodNames(processor: Processor<String>): Boolean {
|
||||
private fun processAllMethodNames(processor: StringProcessor): Boolean {
|
||||
if (disableSearch.get()) return true
|
||||
if (!KotlinFunctionShortNameIndex.getInstance().processAllKeys(project, processor)) {
|
||||
return false
|
||||
@@ -254,7 +254,7 @@ class KotlinShortNamesCache(private val project: Project) : PsiShortNamesCache()
|
||||
|
||||
//region Fields
|
||||
|
||||
override fun processAllFieldNames(processor: Processor<String>, scope: GlobalSearchScope, filter: IdFilter?): Boolean {
|
||||
override fun processAllFieldNames(processor: StringProcessor, scope: GlobalSearchScope, filter: IdFilter?): Boolean {
|
||||
if (disableSearch.get()) return true
|
||||
return processAllFieldNames(processor)
|
||||
}
|
||||
@@ -266,7 +266,7 @@ class KotlinShortNamesCache(private val project: Project) : PsiShortNamesCache()
|
||||
}
|
||||
}
|
||||
|
||||
private fun processAllFieldNames(processor: Processor<String>): Boolean {
|
||||
private fun processAllFieldNames(processor: StringProcessor): Boolean {
|
||||
if (disableSearch.get()) return true
|
||||
return KotlinPropertyShortNameIndex.getInstance().processAllKeys(project, processor)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.idea.caches
|
||||
|
||||
import com.intellij.util.Processor
|
||||
|
||||
// BUNCH 193
|
||||
typealias StringProcessor = Processor<String>
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.idea.caches
|
||||
|
||||
import com.intellij.util.Processor
|
||||
|
||||
// BUNCH 193
|
||||
typealias StringProcessor = Processor<in String>
|
||||
|
||||
Reference in New Issue
Block a user