LL: fix a typo in LLFirSessionFactory
This commit is contained in:
committed by
Ilya Kirillov
parent
9be6520c96
commit
6b4c4457d8
+1
-2
@@ -266,7 +266,7 @@ internal object LLFirSessionFactory {
|
||||
}
|
||||
}
|
||||
|
||||
fun creatLibraryOrLibrarySourceResolvableSession(
|
||||
fun createLibraryOrLibrarySourceResolvableSession(
|
||||
project: Project,
|
||||
module: KtModule,
|
||||
builtinsAndCloneableSession: LLFirBuiltinsAndCloneableSession,
|
||||
@@ -287,7 +287,6 @@ internal object LLFirSessionFactory {
|
||||
else -> error("Unexpected module ${module::class.simpleName}")
|
||||
}
|
||||
|
||||
|
||||
val scopeProvider = FirKotlinScopeProvider()
|
||||
val firFileBuilder = FirFileBuilder(scopeProvider, firPhaseRunner)
|
||||
val contentScope = module.contentScope
|
||||
|
||||
+12
-10
@@ -58,16 +58,18 @@ class LLFirSessionProviderStorage(val project: Project) {
|
||||
configureSession = configureSession,
|
||||
)
|
||||
}
|
||||
is KtLibraryModule, is KtLibrarySourceModule -> LLFirSessionFactory.creatLibraryOrLibrarySourceResolvableSession(
|
||||
project,
|
||||
rootModule,
|
||||
builtinsAndCloneableSession,
|
||||
firPhaseRunner,
|
||||
cache.sessionInvalidator,
|
||||
builtinTypes,
|
||||
sessions,
|
||||
configureSession = configureSession,
|
||||
)
|
||||
is KtLibraryModule, is KtLibrarySourceModule -> {
|
||||
LLFirSessionFactory.createLibraryOrLibrarySourceResolvableSession(
|
||||
project,
|
||||
rootModule,
|
||||
builtinsAndCloneableSession,
|
||||
firPhaseRunner,
|
||||
cache.sessionInvalidator,
|
||||
builtinTypes,
|
||||
sessions,
|
||||
configureSession = configureSession,
|
||||
)
|
||||
}
|
||||
else -> error("Unexpected ${rootModule::class.simpleName}")
|
||||
}
|
||||
|
||||
|
||||
+1
-3
@@ -7,11 +7,9 @@ package org.jetbrains.kotlin.analysis.low.level.api.fir.sessions
|
||||
|
||||
import com.intellij.openapi.project.Project
|
||||
import org.jetbrains.kotlin.analysis.low.level.api.fir.file.builder.FirFileBuilder
|
||||
import org.jetbrains.kotlin.analysis.low.level.api.fir.file.builder.LLFirLibraryResolveModuleFileCache
|
||||
import org.jetbrains.kotlin.analysis.project.structure.KtLibraryModule
|
||||
import org.jetbrains.kotlin.analysis.project.structure.KtLibrarySourceModule
|
||||
import org.jetbrains.kotlin.analysis.project.structure.KtModule
|
||||
import org.jetbrains.kotlin.analysis.project.structure.KtSourceModule
|
||||
import org.jetbrains.kotlin.fir.BuiltinTypes
|
||||
|
||||
internal class LLFirLibraryOrLibrarySourceResolvableModuleSession(
|
||||
@@ -31,4 +29,4 @@ internal class LLFirLibraryOrLibrarySourceResolvableModuleSession(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user