[FIR] Move LibraryModuleInfo to the common frontend
- FIR-specific parts of the Kotlin IntelliJ plugin depend on `LibraryModuleInfo`, so it should be part of the common frontend.
This commit is contained in:
committed by
Space Team
parent
ff174dbad9
commit
9e3ce9cf67
@@ -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<String>
|
||||||
|
}
|
||||||
@@ -28,7 +28,6 @@ import org.jetbrains.kotlin.descriptors.PackageFragmentProvider
|
|||||||
import org.jetbrains.kotlin.descriptors.impl.ModuleDependencies
|
import org.jetbrains.kotlin.descriptors.impl.ModuleDependencies
|
||||||
import org.jetbrains.kotlin.descriptors.impl.ModuleDescriptorImpl
|
import org.jetbrains.kotlin.descriptors.impl.ModuleDescriptorImpl
|
||||||
import org.jetbrains.kotlin.name.FqName
|
import org.jetbrains.kotlin.name.FqName
|
||||||
import org.jetbrains.kotlin.platform.TargetPlatform
|
|
||||||
import org.jetbrains.kotlin.platform.TargetPlatformVersion
|
import org.jetbrains.kotlin.platform.TargetPlatformVersion
|
||||||
import org.jetbrains.kotlin.psi.KtFile
|
import org.jetbrains.kotlin.psi.KtFile
|
||||||
import org.jetbrains.kotlin.resolve.SealedClassInheritorsProvider
|
import org.jetbrains.kotlin.resolve.SealedClassInheritorsProvider
|
||||||
@@ -117,12 +116,6 @@ fun ModuleInfo.unwrapPlatform(): ModuleInfo = if (this is CombinedModuleInfo) pl
|
|||||||
interface LibraryModuleSourceInfoBase : ModuleInfo
|
interface LibraryModuleSourceInfoBase : ModuleInfo
|
||||||
interface NonSourceModuleInfoBase : ModuleInfo
|
interface NonSourceModuleInfoBase : ModuleInfo
|
||||||
|
|
||||||
interface LibraryModuleInfo : ModuleInfo {
|
|
||||||
override val platform: TargetPlatform
|
|
||||||
|
|
||||||
fun getLibraryRoots(): Collection<String>
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class ResolverForModuleFactory {
|
abstract class ResolverForModuleFactory {
|
||||||
open fun <M : ModuleInfo> createResolverForModule(
|
open fun <M : ModuleInfo> createResolverForModule(
|
||||||
moduleDescriptor: ModuleDescriptorImpl,
|
moduleDescriptor: ModuleDescriptorImpl,
|
||||||
|
|||||||
Reference in New Issue
Block a user