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:
committed by
Ilya Kirillov
parent
2a864b3685
commit
1b79ee89ba
-7
@@ -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>
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user