diff --git a/compiler/frontend.common/src/org/jetbrains/kotlin/analyzer/LibraryModuleInfo.kt b/compiler/frontend.common/src/org/jetbrains/kotlin/analyzer/LibraryModuleInfo.kt new file mode 100644 index 00000000000..61ef3e8305f --- /dev/null +++ b/compiler/frontend.common/src/org/jetbrains/kotlin/analyzer/LibraryModuleInfo.kt @@ -0,0 +1,14 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.analyzer + +import org.jetbrains.kotlin.platform.TargetPlatform + +interface LibraryModuleInfo : ModuleInfo { + override val platform: TargetPlatform + + fun getLibraryRoots(): Collection +} diff --git a/compiler/frontend/src/org/jetbrains/kotlin/analyzer/AnalyzerFacade.kt b/compiler/frontend/src/org/jetbrains/kotlin/analyzer/AnalyzerFacade.kt index 9114c0c2d18..3994f88d373 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/analyzer/AnalyzerFacade.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/analyzer/AnalyzerFacade.kt @@ -28,7 +28,6 @@ import org.jetbrains.kotlin.descriptors.PackageFragmentProvider import org.jetbrains.kotlin.descriptors.impl.ModuleDependencies import org.jetbrains.kotlin.descriptors.impl.ModuleDescriptorImpl import org.jetbrains.kotlin.name.FqName -import org.jetbrains.kotlin.platform.TargetPlatform import org.jetbrains.kotlin.platform.TargetPlatformVersion import org.jetbrains.kotlin.psi.KtFile import org.jetbrains.kotlin.resolve.SealedClassInheritorsProvider @@ -117,12 +116,6 @@ fun ModuleInfo.unwrapPlatform(): ModuleInfo = if (this is CombinedModuleInfo) pl interface LibraryModuleSourceInfoBase : ModuleInfo interface NonSourceModuleInfoBase : ModuleInfo -interface LibraryModuleInfo : ModuleInfo { - override val platform: TargetPlatform - - fun getLibraryRoots(): Collection -} - abstract class ResolverForModuleFactory { open fun createResolverForModule( moduleDescriptor: ModuleDescriptorImpl,