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,
|
project: Project,
|
||||||
module: KtModule,
|
module: KtModule,
|
||||||
builtinsAndCloneableSession: LLFirBuiltinsAndCloneableSession,
|
builtinsAndCloneableSession: LLFirBuiltinsAndCloneableSession,
|
||||||
@@ -287,7 +287,6 @@ internal object LLFirSessionFactory {
|
|||||||
else -> error("Unexpected module ${module::class.simpleName}")
|
else -> error("Unexpected module ${module::class.simpleName}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
val scopeProvider = FirKotlinScopeProvider()
|
val scopeProvider = FirKotlinScopeProvider()
|
||||||
val firFileBuilder = FirFileBuilder(scopeProvider, firPhaseRunner)
|
val firFileBuilder = FirFileBuilder(scopeProvider, firPhaseRunner)
|
||||||
val contentScope = module.contentScope
|
val contentScope = module.contentScope
|
||||||
|
|||||||
+12
-10
@@ -58,16 +58,18 @@ class LLFirSessionProviderStorage(val project: Project) {
|
|||||||
configureSession = configureSession,
|
configureSession = configureSession,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
is KtLibraryModule, is KtLibrarySourceModule -> LLFirSessionFactory.creatLibraryOrLibrarySourceResolvableSession(
|
is KtLibraryModule, is KtLibrarySourceModule -> {
|
||||||
project,
|
LLFirSessionFactory.createLibraryOrLibrarySourceResolvableSession(
|
||||||
rootModule,
|
project,
|
||||||
builtinsAndCloneableSession,
|
rootModule,
|
||||||
firPhaseRunner,
|
builtinsAndCloneableSession,
|
||||||
cache.sessionInvalidator,
|
firPhaseRunner,
|
||||||
builtinTypes,
|
cache.sessionInvalidator,
|
||||||
sessions,
|
builtinTypes,
|
||||||
configureSession = configureSession,
|
sessions,
|
||||||
)
|
configureSession = configureSession,
|
||||||
|
)
|
||||||
|
}
|
||||||
else -> error("Unexpected ${rootModule::class.simpleName}")
|
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 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.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.KtLibraryModule
|
||||||
import org.jetbrains.kotlin.analysis.project.structure.KtLibrarySourceModule
|
import org.jetbrains.kotlin.analysis.project.structure.KtLibrarySourceModule
|
||||||
import org.jetbrains.kotlin.analysis.project.structure.KtModule
|
import org.jetbrains.kotlin.analysis.project.structure.KtModule
|
||||||
import org.jetbrains.kotlin.analysis.project.structure.KtSourceModule
|
|
||||||
import org.jetbrains.kotlin.fir.BuiltinTypes
|
import org.jetbrains.kotlin.fir.BuiltinTypes
|
||||||
|
|
||||||
internal class LLFirLibraryOrLibrarySourceResolvableModuleSession(
|
internal class LLFirLibraryOrLibrarySourceResolvableModuleSession(
|
||||||
@@ -31,4 +29,4 @@ internal class LLFirLibraryOrLibrarySourceResolvableModuleSession(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user