AA: drop ProjectStructureProvider#getKtBinaryModules

Instead, provide an option to register PSI declaration provider inside
Analysis API session builder where we can retrieve all necessary pieces,
including CoreJarFileSystem, PackagePartProvider, and binary modules
from internal project structure provider.
This commit is contained in:
Jinseong Jeon
2022-08-15 23:49:26 -07:00
committed by Ilya Kirillov
parent 2a864b3685
commit 1b79ee89ba
5 changed files with 37 additions and 29 deletions
@@ -7,19 +7,12 @@ package org.jetbrains.kotlin.analysis.project.structure
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.jetbrains.kotlin.platform.TargetPlatform
public abstract class ProjectStructureProvider {
/**
* For a given [PsiElement] get a [KtModule] to which [PsiElement] belongs.
*/
public abstract fun getKtModuleForKtElement(element: PsiElement): KtModule
/**
* Returns all dependent [KtBinaryModule]s in this project.
*/
// TODO: We rather need a session or facade that maintains this information.
public abstract fun getKtBinaryModules(): Collection<KtBinaryModule>
}
/**