[wobbler] make kotlin indices public

GitOrigin-RevId: e324f272a6b9a57fd72cd8725bdaaa8974cab0bc
This commit is contained in:
Andrey Zaytsev
2025-02-01 16:06:29 +00:00
committed by intellij-monorepo-bot
parent bccad27da7
commit 76d30ff5ca
40 changed files with 42 additions and 42 deletions
@@ -12,7 +12,7 @@ import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.psi.*
internal class IdeKotlinAnnotationsResolverFactory(private val project: Project) : KotlinAnnotationsResolverFactory {
class IdeKotlinAnnotationsResolverFactory(private val project: Project) : KotlinAnnotationsResolverFactory {
override fun createAnnotationResolver(searchScope: GlobalSearchScope): KotlinAnnotationsResolver {
return IdeKotlinAnnotationsResolver(project, searchScope)
}
@@ -28,7 +28,7 @@ import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.psi.*
import org.jetbrains.kotlin.utils.addToStdlib.safeAs
internal class IdeKotlinDeclarationProviderFactory(private val project: Project) : KotlinDeclarationProviderFactory {
class IdeKotlinDeclarationProviderFactory(private val project: Project) : KotlinDeclarationProviderFactory {
override fun createDeclarationProvider(scope: GlobalSearchScope, contextualModule: KaModule?): KotlinDeclarationProvider {
val mainProvider = IdeKotlinDeclarationProvider(project, scope, contextualModule)
@@ -44,7 +44,7 @@ internal class IdeKotlinDeclarationProviderFactory(private val project: Project)
}
}
internal class IdeKotlinDeclarationProviderMerger(private val project: Project) : KotlinDeclarationProviderMerger {
class IdeKotlinDeclarationProviderMerger(private val project: Project) : KotlinDeclarationProviderMerger {
override fun merge(providers: List<KotlinDeclarationProvider>): KotlinDeclarationProvider =
providers.mergeSpecificProviders<_, IdeKotlinDeclarationProvider>(KotlinCompositeDeclarationProvider.factory) { targetProviders ->
IdeKotlinDeclarationProvider(
@@ -6,7 +6,7 @@ import org.jetbrains.kotlin.analysis.api.platform.packages.KotlinPackagePartProv
import org.jetbrains.kotlin.idea.caches.resolve.IDEPackagePartProvider
import org.jetbrains.kotlin.load.kotlin.PackagePartProvider
internal class IdeKotlinPackagePartProviderFactory : KotlinPackagePartProviderFactory {
class IdeKotlinPackagePartProviderFactory : KotlinPackagePartProviderFactory {
override fun createPackagePartProvider(scope: GlobalSearchScope): PackagePartProvider {
return IDEPackagePartProvider(scope)
}
@@ -19,13 +19,13 @@ import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.name.Name
import java.util.concurrent.ConcurrentHashMap
internal class IdeKotlinPackageProviderFactory(private val project: Project) : KotlinPackageProviderFactory {
class IdeKotlinPackageProviderFactory(private val project: Project) : KotlinPackageProviderFactory {
override fun createPackageProvider(searchScope: GlobalSearchScope): KotlinPackageProvider {
return IdeKotlinPackageProvider(project, searchScope)
}
}
internal class IdeKotlinPackageProviderMerger(private val project: Project) : KotlinPackageProviderMerger {
class IdeKotlinPackageProviderMerger(private val project: Project) : KotlinPackageProviderMerger {
override fun merge(providers: List<KotlinPackageProvider>): KotlinPackageProvider =
providers.mergeSpecificProviders<_, IdeKotlinPackageProvider>(KotlinCompositePackageProvider.factory) { targetProviders ->
IdeKotlinPackageProvider(
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtAnnotationEntry
class KotlinAnnotationsIndex internal constructor() : StringStubIndexExtension<KtAnnotationEntry>() {
class KotlinAnnotationsIndex : StringStubIndexExtension<KtAnnotationEntry>() {
companion object Helper : KotlinStringStubIndexHelper<KtAnnotationEntry>(KtAnnotationEntry::class.java) {
@JvmField
@Deprecated("Use the Helper object instead", level = DeprecationLevel.HIDDEN)
@@ -8,7 +8,7 @@ import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.psi.KtClassOrObject
class KotlinClassShortNameIndex internal constructor() : StringStubIndexExtension<KtClassOrObject>() {
class KotlinClassShortNameIndex : StringStubIndexExtension<KtClassOrObject>() {
companion object Helper : KotlinStringStubIndexHelper<KtClassOrObject>(KtClassOrObject::class.java) {
@JvmField
@ApiStatus.ScheduledForRemoval
@@ -10,7 +10,7 @@ import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.idea.base.indices.getByKeyAndMeasure
import org.jetbrains.kotlin.psi.KtFile
class KotlinExactPackagesIndex internal constructor() : StringStubIndexExtension<KtFile>() {
class KotlinExactPackagesIndex : StringStubIndexExtension<KtFile>() {
companion object {
@JvmStatic
private val LOG = Logger.getInstance(KotlinExactPackagesIndex::class.java)
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtCallableDeclaration
class KotlinExtensionsInObjectsByReceiverTypeIndex internal constructor() : StringStubIndexExtension<KtCallableDeclaration>() {
class KotlinExtensionsInObjectsByReceiverTypeIndex : StringStubIndexExtension<KtCallableDeclaration>() {
companion object Helper : KotlinExtensionsByReceiverTypeStubIndexHelper() {
override val indexKey: StubIndexKey<String, KtCallableDeclaration> =
StubIndexKey.createIndexKey(KotlinExtensionsInObjectsByReceiverTypeIndex::class.java.simpleName)
@@ -8,7 +8,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtFile
class KotlinFileFacadeClassByPackageIndex internal constructor() : StringStubIndexExtension<KtFile>() {
class KotlinFileFacadeClassByPackageIndex : StringStubIndexExtension<KtFile>() {
companion object Helper : KotlinStringStubIndexHelper<KtFile>(KtFile::class.java) {
override val indexKey: StubIndexKey<String, KtFile> =
StubIndexKey.createIndexKey(KotlinFileFacadeClassByPackageIndex::class.java.simpleName)
@@ -8,7 +8,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtFile
class KotlinFileFacadeFqNameIndex internal constructor() : StringStubIndexExtension<KtFile>() {
class KotlinFileFacadeFqNameIndex : StringStubIndexExtension<KtFile>() {
companion object Helper : KotlinStringStubIndexHelper<KtFile>(KtFile::class.java) {
override val indexKey: StubIndexKey<String, KtFile> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinFileFacadeFqNameIndex")
@@ -8,7 +8,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtFile
class KotlinFileFacadeShortNameIndex internal constructor() : StringStubIndexExtension<KtFile>() {
class KotlinFileFacadeShortNameIndex : StringStubIndexExtension<KtFile>() {
companion object Helper : KotlinStringStubIndexHelper<KtFile>(KtFile::class.java) {
override val indexKey: StubIndexKey<String, KtFile> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinFileFacadeShortNameIndex")
@@ -13,7 +13,7 @@ import org.jetbrains.kotlin.psi.KtFile
* "kotlin.text.StringsKt___StringsJvmKt" -> KtFile("_StringsJvm") (sources)
* "kotlin.LazyKt__LazyKt" -> KtFile("Lazy.kt") (sources)
*/
class KotlinFilePartClassIndex internal constructor() : StringStubIndexExtension<KtFile>() {
class KotlinFilePartClassIndex : StringStubIndexExtension<KtFile>() {
companion object Helper : KotlinStringStubIndexHelper<KtFile>(KtFile::class.java) {
override val indexKey: StubIndexKey<String, KtFile> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinFilePartClassIndex")
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtClassOrObject
class KotlinFullClassNameIndex internal constructor() : StringStubIndexExtension<KtClassOrObject>() {
class KotlinFullClassNameIndex : StringStubIndexExtension<KtClassOrObject>() {
companion object Helper : KotlinStringStubIndexHelper<KtClassOrObject>(KtClassOrObject::class.java) {
@JvmField
@Deprecated("Use the Helper object instead", level = DeprecationLevel.ERROR)
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtNamedFunction
class KotlinFunctionShortNameIndex internal constructor() : StringStubIndexExtension<KtNamedFunction>() {
class KotlinFunctionShortNameIndex : StringStubIndexExtension<KtNamedFunction>() {
companion object Helper : KotlinStringStubIndexHelper<KtNamedFunction>(KtNamedFunction::class.java) {
override val indexKey: StubIndexKey<String, KtNamedFunction> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinFunctionShortNameIndex")
@@ -13,7 +13,7 @@ import org.jetbrains.kotlin.psi.KtTypeAlias
* The key is stringified [org.jetbrains.kotlin.name.ClassId] by the rules described in [org.jetbrains.kotlin.name.ClassId.asString]:
* packages are delimited by '/' and classes by '.', e.g. "kotlin/Map.Entry"
*/
class KotlinInnerTypeAliasClassIdIndex internal constructor() : StringStubIndexExtension<KtTypeAlias>() {
class KotlinInnerTypeAliasClassIdIndex : StringStubIndexExtension<KtTypeAlias>() {
companion object Helper : KotlinStringStubIndexHelper<KtTypeAlias>(KtTypeAlias::class.java) {
override val indexKey: StubIndexKey<String, KtTypeAlias> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinInnerTypeAliasClassIdIndex")
@@ -8,7 +8,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtAnnotationEntry
class KotlinJvmNameAnnotationIndex internal constructor() : StringStubIndexExtension<KtAnnotationEntry>() {
class KotlinJvmNameAnnotationIndex : StringStubIndexExtension<KtAnnotationEntry>() {
companion object Helper : KotlinStringStubIndexHelper<KtAnnotationEntry>(KtAnnotationEntry::class.java) {
override val indexKey: StubIndexKey<String, KtAnnotationEntry> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinJvmNameAnnotationIndex")
@@ -13,7 +13,7 @@ import org.jetbrains.kotlin.psi.KtFile
* "kotlin.LazyKt__LazyKt" -> KtClsFile("LazyKt.class")
* "kotlin.text.StringsKt___StringsJvmKt" -> KtClsFile("StringsKt.class")
*/
class KotlinMultiFileClassPartIndex internal constructor() : StringStubIndexExtension<KtFile>() {
class KotlinMultiFileClassPartIndex : StringStubIndexExtension<KtFile>() {
companion object Helper : KotlinStringStubIndexHelper<KtFile>(KtFile::class.java) {
override val indexKey: StubIndexKey<String, KtFile> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinMultifileClassPartIndex")
@@ -8,7 +8,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtCallableDeclaration
class KotlinOverridableInternalMembersShortNameIndex internal constructor() : StringStubIndexExtension<KtCallableDeclaration>() {
class KotlinOverridableInternalMembersShortNameIndex : StringStubIndexExtension<KtCallableDeclaration>() {
companion object Helper : KotlinStringStubIndexHelper<KtCallableDeclaration>(KtCallableDeclaration::class.java) {
override val indexKey: StubIndexKey<String, KtCallableDeclaration> =
StubIndexKey.createIndexKey(KotlinOverridableInternalMembersShortNameIndex::class.java.simpleName)
@@ -5,7 +5,7 @@ import com.intellij.psi.NavigatablePsiElement
import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
class KotlinPrimeSymbolNameIndex internal constructor() : StringStubIndexExtension<NavigatablePsiElement>() {
class KotlinPrimeSymbolNameIndex : StringStubIndexExtension<NavigatablePsiElement>() {
companion object Helper : KotlinStringStubIndexHelper<NavigatablePsiElement>(NavigatablePsiElement::class.java) {
override val indexKey: StubIndexKey<String, NavigatablePsiElement> = StubIndexKey.createIndexKey("kotlin.primeIndexKey")
}
@@ -10,7 +10,7 @@ import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.psi.KtNamedFunction
@ApiStatus.Internal
class KotlinProbablyContractedFunctionShortNameIndex internal constructor() : StringStubIndexExtension<KtNamedFunction>() {
class KotlinProbablyContractedFunctionShortNameIndex : StringStubIndexExtension<KtNamedFunction>() {
companion object Helper : KotlinStringStubIndexHelper<KtNamedFunction>(KtNamedFunction::class.java) {
override val indexKey: StubIndexKey<String, KtNamedFunction> =
StubIndexKey.createIndexKey(KotlinProbablyContractedFunctionShortNameIndex::class.java.simpleName)
@@ -9,7 +9,7 @@ import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.psi.KtNamedFunction
@ApiStatus.Internal
class KotlinProbablyNothingFunctionShortNameIndex internal constructor() : StringStubIndexExtension<KtNamedFunction>() {
class KotlinProbablyNothingFunctionShortNameIndex : StringStubIndexExtension<KtNamedFunction>() {
companion object Helper : KotlinStringStubIndexHelper<KtNamedFunction>(KtNamedFunction::class.java) {
override val indexKey: StubIndexKey<String, KtNamedFunction> =
StubIndexKey.createIndexKey(KotlinProbablyNothingFunctionShortNameIndex::class.java.simpleName)
@@ -9,7 +9,7 @@ import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.psi.KtProperty
@ApiStatus.Internal
class KotlinProbablyNothingPropertyShortNameIndex internal constructor() : StringStubIndexExtension<KtProperty>() {
class KotlinProbablyNothingPropertyShortNameIndex : StringStubIndexExtension<KtProperty>() {
companion object Helper : KotlinStringStubIndexHelper<KtProperty>(KtProperty::class.java) {
override val indexKey: StubIndexKey<String, KtProperty> =
StubIndexKey.createIndexKey(KotlinProbablyNothingPropertyShortNameIndex::class.java.simpleName)
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtNamedDeclaration
class KotlinPropertyShortNameIndex internal constructor() : StringStubIndexExtension<KtNamedDeclaration>() {
class KotlinPropertyShortNameIndex : StringStubIndexExtension<KtNamedDeclaration>() {
companion object Helper : KotlinStringStubIndexHelper<KtNamedDeclaration>(KtNamedDeclaration::class.java) {
override val indexKey: StubIndexKey<String, KtNamedDeclaration> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinPropertyShortNameIndex")
@@ -10,7 +10,7 @@ import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.psi.KtScript
@ApiStatus.Internal
class KotlinScriptFqnIndex internal constructor() : StringStubIndexExtension<KtScript>() {
class KotlinScriptFqnIndex : StringStubIndexExtension<KtScript>() {
companion object Helper : KotlinStringStubIndexHelper<KtScript>(KtScript::class.java) {
override val indexKey: StubIndexKey<String, KtScript> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinScriptFqnIndex")
@@ -14,7 +14,7 @@ import org.jetbrains.kotlin.psi.KtObjectDeclaration
* See [org.jetbrains.kotlin.idea.core.KotlinIndicesHelper.processAllCallablesFromSubclassObjects]
* for a usage example.
*/
class KotlinSubclassObjectNameIndex internal constructor() : StringStubIndexExtension<KtObjectDeclaration>() {
class KotlinSubclassObjectNameIndex : StringStubIndexExtension<KtObjectDeclaration>() {
companion object Helper : KotlinStringStubIndexHelper<KtObjectDeclaration>(KtObjectDeclaration::class.java) {
override val indexKey: StubIndexKey<String, KtObjectDeclaration> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinSubclassObjectNameIndex")
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtClassOrObject
class KotlinSuperClassIndex internal constructor() : StringStubIndexExtension<KtClassOrObject>() {
class KotlinSuperClassIndex : StringStubIndexExtension<KtClassOrObject>() {
companion object Helper : KotlinStringStubIndexHelper<KtClassOrObject>(KtClassOrObject::class.java) {
override val indexKey: StubIndexKey<String, KtClassOrObject> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinSuperClassIndex")
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtClassOrObject
class KotlinTopLevelClassByPackageIndex internal constructor() : StringStubIndexExtension<KtClassOrObject>() {
class KotlinTopLevelClassByPackageIndex : StringStubIndexExtension<KtClassOrObject>() {
companion object Helper : KotlinStringStubIndexHelper<KtClassOrObject>(KtClassOrObject::class.java) {
override val indexKey: StubIndexKey<String, KtClassOrObject> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelClassByPackageIndex")
@@ -8,7 +8,7 @@ import org.jetbrains.kotlin.psi.KtNamedFunction
/**
* Stores top level functions with `expect` modifier by full qualified name
*/
class KotlinTopLevelExpectFunctionFqNameIndex internal constructor() : StringStubIndexExtension<KtNamedFunction>() {
class KotlinTopLevelExpectFunctionFqNameIndex : StringStubIndexExtension<KtNamedFunction>() {
companion object Helper : KotlinStringStubIndexHelper<KtNamedFunction>(KtNamedFunction::class.java) {
override val indexKey: StubIndexKey<String, KtNamedFunction> =
StubIndexKey.createIndexKey(KotlinTopLevelExpectFunctionFqNameIndex::class.simpleName!!)
@@ -8,7 +8,7 @@ import org.jetbrains.kotlin.psi.KtProperty
/**
* Stores top level properties with `expect` modifier by full qualified name
*/
class KotlinTopLevelExpectPropertyFqNameIndex internal constructor() : StringStubIndexExtension<KtProperty>() {
class KotlinTopLevelExpectPropertyFqNameIndex : StringStubIndexExtension<KtProperty>() {
companion object Helper : KotlinStringStubIndexHelper<KtProperty>(KtProperty::class.java) {
override val indexKey: StubIndexKey<String, KtProperty> =
StubIndexKey.createIndexKey(KotlinTopLevelExpectPropertyFqNameIndex::class.simpleName!!)
@@ -9,7 +9,7 @@ import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.psi.KtCallableDeclaration
class KotlinTopLevelExtensionsByReceiverTypeIndex internal constructor() : StringStubIndexExtension<KtCallableDeclaration>() {
class KotlinTopLevelExtensionsByReceiverTypeIndex : StringStubIndexExtension<KtCallableDeclaration>() {
companion object Helper : KotlinExtensionsByReceiverTypeStubIndexHelper() {
@JvmField
@Suppress("DeprecatedCallableAddReplaceWith")
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtNamedFunction
class KotlinTopLevelFunctionByPackageIndex internal constructor() : StringStubIndexExtension<KtNamedFunction>() {
class KotlinTopLevelFunctionByPackageIndex : StringStubIndexExtension<KtNamedFunction>() {
companion object Helper : KotlinStringStubIndexHelper<KtNamedFunction>(KtNamedFunction::class.java) {
override val indexKey: StubIndexKey<String, KtNamedFunction> =
StubIndexKey.createIndexKey(KotlinTopLevelFunctionByPackageIndex::class.java.simpleName)
@@ -10,7 +10,7 @@ import org.jetbrains.kotlin.psi.KtNamedFunction
/**
* Stores package top level function (both extension and non-extension) full qualified names.
*/
class KotlinTopLevelFunctionFqnNameIndex internal constructor() : StringStubIndexExtension<KtNamedFunction>() {
class KotlinTopLevelFunctionFqnNameIndex: StringStubIndexExtension<KtNamedFunction>() {
companion object Helper : KotlinStringStubIndexHelper<KtNamedFunction>(KtNamedFunction::class.java) {
override val indexKey: StubIndexKey<String, KtNamedFunction> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelFunctionFqnNameIndex")
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtProperty
class KotlinTopLevelPropertyByPackageIndex internal constructor() : StringStubIndexExtension<KtProperty>() {
class KotlinTopLevelPropertyByPackageIndex : StringStubIndexExtension<KtProperty>() {
companion object Helper : KotlinStringStubIndexHelper<KtProperty>(KtProperty::class.java) {
override val indexKey: StubIndexKey<String, KtProperty> =
StubIndexKey.createIndexKey(KotlinTopLevelPropertyByPackageIndex::class.java.simpleName)
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtProperty
class KotlinTopLevelPropertyFqnNameIndex internal constructor() : StringStubIndexExtension<KtProperty>() {
class KotlinTopLevelPropertyFqnNameIndex : StringStubIndexExtension<KtProperty>() {
companion object Helper : KotlinStringStubIndexHelper<KtProperty>(KtProperty::class.java) {
override val indexKey: StubIndexKey<String, KtProperty> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelPropertyFqnNameIndex")
@@ -8,7 +8,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtTypeAlias
class KotlinTopLevelTypeAliasByPackageIndex internal constructor() : StringStubIndexExtension<KtTypeAlias>() {
class KotlinTopLevelTypeAliasByPackageIndex : StringStubIndexExtension<KtTypeAlias>() {
companion object Helper : KotlinStringStubIndexHelper<KtTypeAlias>(KtTypeAlias::class.java) {
override val indexKey: StubIndexKey<String, KtTypeAlias> =
StubIndexKey.createIndexKey(KotlinTopLevelTypeAliasByPackageIndex::class.java.simpleName)
@@ -9,7 +9,7 @@ import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.psi.KtTypeAlias
class KotlinTopLevelTypeAliasFqNameIndex internal constructor() : StringStubIndexExtension<KtTypeAlias>() {
class KotlinTopLevelTypeAliasFqNameIndex : StringStubIndexExtension<KtTypeAlias>() {
companion object Helper : KotlinStringStubIndexHelper<KtTypeAlias>(KtTypeAlias::class.java) {
override val indexKey: StubIndexKey<String, KtTypeAlias> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelTypeAliasFqNameIndex")
@@ -9,7 +9,7 @@ import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.psi.KtTypeAlias
class KotlinTypeAliasByExpansionShortNameIndex internal constructor() : StringStubIndexExtension<KtTypeAlias>() {
class KotlinTypeAliasByExpansionShortNameIndex : StringStubIndexExtension<KtTypeAlias>() {
companion object Helper : KotlinStringStubIndexHelper<KtTypeAlias>(KtTypeAlias::class.java) {
@JvmField
@ApiStatus.ScheduledForRemoval
@@ -7,7 +7,7 @@ import com.intellij.psi.stubs.StringStubIndexExtension
import com.intellij.psi.stubs.StubIndexKey
import org.jetbrains.kotlin.psi.KtTypeAlias
class KotlinTypeAliasShortNameIndex internal constructor() : StringStubIndexExtension<KtTypeAlias>() {
class KotlinTypeAliasShortNameIndex : StringStubIndexExtension<KtTypeAlias>() {
companion object Helper : KotlinStringStubIndexHelper<KtTypeAlias>(KtTypeAlias::class.java) {
override val indexKey: StubIndexKey<String, KtTypeAlias> =
StubIndexKey.createIndexKey("org.jetbrains.kotlin.idea.stubindex.KotlinTypeAliasShortNameIndex")
@@ -14,7 +14,7 @@ import java.io.DataInput
import java.io.DataOutput
class KotlinJvmModuleAnnotationsIndex internal constructor() : FileBasedIndexExtension<String, List<ClassId>>() {
class KotlinJvmModuleAnnotationsIndex : FileBasedIndexExtension<String, List<ClassId>>() {
companion object {
val NAME: ID<String, List<ClassId>> = ID.create(KotlinJvmModuleAnnotationsIndex::class.java.canonicalName)
}
@@ -15,7 +15,7 @@ import java.io.DataInput
import java.io.DataOutput
internal const val MAPPING_FILE_DOT_FILE_EXTENSION = ".${ModuleMapping.MAPPING_FILE_EXT}"
class KotlinModuleMappingIndex internal constructor() : FileBasedIndexExtension<String, PackageParts>() {
class KotlinModuleMappingIndex : FileBasedIndexExtension<String, PackageParts>() {
companion object {
val NAME: ID<String, PackageParts> = ID.create(KotlinModuleMappingIndex::class.java.canonicalName)