Minor: Remove scoping limitation in newly created indices
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ class KotlinMultifileClassPartIndex private constructor() : StringStubIndexExten
|
||||
override fun getKey(): StubIndexKey<String, KtFile> = KEY
|
||||
|
||||
override fun get(key: String, project: Project, scope: GlobalSearchScope) =
|
||||
StubIndex.getElements(KEY, key, project, KotlinSourceFilterScope.sourcesAndLibraries(scope, project), KtFile::class.java)
|
||||
StubIndex.getElements(KEY, key, project, scope, KtFile::class.java)
|
||||
|
||||
companion object {
|
||||
private val KEY = KotlinIndexUtil.createIndexKey(KotlinMultifileClassPartIndex::class.java)
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@ class KotlinTopLevelTypeAliasByPackageIndex : StringStubIndexExtension<KtTypeAli
|
||||
override fun get(s: String, project: Project, scope: GlobalSearchScope): Collection<KtTypeAlias> =
|
||||
StubIndex.getElements<String, KtTypeAlias>(
|
||||
KEY, s, project,
|
||||
KotlinSourceFilterScope.sourcesAndLibraries(scope, project),
|
||||
KtTypeAlias::class.java)
|
||||
scope, KtTypeAlias::class.java
|
||||
)
|
||||
|
||||
companion object {
|
||||
val KEY = KotlinIndexUtil.createIndexKey(KotlinTopLevelTypeAliasByPackageIndex::class.java)
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@ class KotlinTopLevelTypeAliasFqNameIndex : StringStubIndexExtension<KtTypeAlias>
|
||||
override fun get(s: String, project: Project, scope: GlobalSearchScope): Collection<KtTypeAlias> =
|
||||
StubIndex.getElements<String, KtTypeAlias>(
|
||||
KEY, s, project,
|
||||
KotlinSourceFilterScope.sourcesAndLibraries(scope, project),
|
||||
KtTypeAlias::class.java)
|
||||
scope, KtTypeAlias::class.java
|
||||
)
|
||||
|
||||
companion object {
|
||||
val KEY = KotlinIndexUtil.createIndexKey(KotlinTopLevelTypeAliasFqNameIndex::class.java)
|
||||
|
||||
Reference in New Issue
Block a user