[LL API] Make 'KtNotUnderContentRootModuleForTest' depend on built-ins

This commit is contained in:
Yan Zhulanow
2023-01-19 18:37:54 +09:00
committed by Space Team
parent 9bd1a24c13
commit f199671c4d
6 changed files with 59 additions and 56 deletions
@@ -24,6 +24,7 @@ internal class KtModuleProviderImpl(
) : ProjectStructureProvider() {
private val ktNotUnderContentRootModuleWithoutPsiFile by lazy {
KtNotUnderContentRootModuleImpl(
name = "unnamed-outside-content-root",
moduleDescription = "Standalone-not-under-content-root-module-without-psi-file",
project = project,
)
@@ -44,6 +45,7 @@ internal class KtModuleProviderImpl(
val containingFileAsVirtualFile = containingFileAsPsiFile.virtualFile
?: return notUnderContentRootModuleCache.getOrPut(containingFileAsPsiFile) {
KtNotUnderContentRootModuleImpl(
name = containingFileAsPsiFile.name,
moduleDescription = "Standalone-not-under-content-root-module-for-$containingFileAsPsiFile",
file = containingFileAsPsiFile,
project = project,
@@ -15,6 +15,7 @@ import org.jetbrains.kotlin.platform.jvm.JvmPlatforms
import org.jetbrains.kotlin.resolve.PlatformDependentAnalyzerServices
internal class KtNotUnderContentRootModuleImpl(
override val name: String,
override val directRegularDependencies: List<KtModule> = emptyList(),
override val directRefinementDependencies: List<KtModule> = emptyList(),
override val directFriendDependencies: List<KtModule> = emptyList(),