Commit 6ef318b2 authored by Jinseong Jeon's avatar Jinseong Jeon
Browse files

AA: look up built-ins module before general library modules

parent 7d718b75
Showing with 1 addition and 1 deletion
+1 -1
...@@ -41,6 +41,7 @@ class KotlinModuleStateTrackerProvider(project: Project) : Disposable { ...@@ -41,6 +41,7 @@ class KotlinModuleStateTrackerProvider(project: Project) : Disposable {
fun getModuleStateTrackerFor(module: KtModule): KtModuleStateTracker { fun getModuleStateTrackerFor(module: KtModule): KtModuleStateTracker {
return when (module) { return when (module) {
is KtBuiltinsModule -> ModuleStateTrackerImpl()
is KtLibraryModule -> { is KtLibraryModule -> {
val libraryInfo = module.moduleInfo as LibraryInfo val libraryInfo = module.moduleInfo as LibraryInfo
libraryInfo.checkValidity() libraryInfo.checkValidity()
...@@ -62,7 +63,6 @@ class KotlinModuleStateTrackerProvider(project: Project) : Disposable { ...@@ -62,7 +63,6 @@ class KotlinModuleStateTrackerProvider(project: Project) : Disposable {
is KtLibrarySourceModule -> getModuleStateTrackerFor(module.binaryLibrary) is KtLibrarySourceModule -> getModuleStateTrackerFor(module.binaryLibrary)
is KtNotUnderContentRootModule -> ModuleStateTrackerImpl() // TODO need proper cache? is KtNotUnderContentRootModule -> ModuleStateTrackerImpl() // TODO need proper cache?
is KtBuiltinsModule -> ModuleStateTrackerImpl()
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment