mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] AA: adapt to addition of VirtualFile support for binary module
^KT-68896 GitOrigin-RevId: dedd1daf72e2129bf7d4a9d30f689b073f0f34f4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
afc52e70ae
commit
10ac1f2a4e
+6
@@ -212,6 +212,9 @@ open class KtLibraryModuleByModuleInfo(val libraryInfo: LibraryInfo) : KtModuleB
|
||||
override val binaryRoots: Collection<Path>
|
||||
get() = libraryInfo.getLibraryRoots().map(Paths::get)
|
||||
|
||||
@KaExperimentalApi
|
||||
override val binaryVirtualFiles: Collection<VirtualFile> = emptyList()
|
||||
|
||||
override val isSdk: Boolean get() = false
|
||||
|
||||
override val contentScope: GlobalSearchScope get() = ideaModuleInfo.contentScope
|
||||
@@ -272,6 +275,9 @@ class KtSdkLibraryModuleByModuleInfo(val moduleInfo: SdkInfo) : KtModuleByModule
|
||||
Paths.get(virtualFile.fileSystem.extractPresentableUrl(virtualFile.path)).normalize()
|
||||
}
|
||||
|
||||
@KaExperimentalApi
|
||||
override val binaryVirtualFiles: Collection<VirtualFile> = emptyList()
|
||||
|
||||
override val librarySources: KaLibrarySourceModule? get() = null
|
||||
|
||||
override val isSdk: Boolean get() = true
|
||||
|
||||
+3
@@ -120,6 +120,9 @@ private class KtScriptDependencyModuleByModuleInfo(
|
||||
.getScriptDependenciesClassFiles(moduleInfo.scriptFile).map { it.toNioPath() }
|
||||
}
|
||||
|
||||
@KaExperimentalApi
|
||||
override val binaryVirtualFiles: Collection<VirtualFile> = emptyList()
|
||||
|
||||
override val file: KtFile?
|
||||
get() = optScriptFile((moduleInfo as? ScriptDependenciesInfo.ForFile)?.scriptFile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user