Minor: Remove scoping limitation in newly created indices

This commit is contained in:
Pavel V. Talanov
2016-06-09 21:44:11 +03:00
parent 8921ced9dd
commit ddb3327992
3 changed files with 5 additions and 5 deletions
@@ -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)
@@ -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)
@@ -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)