[Analysis API] Remove components of obsolete on-air analysis

On-air analysis only worked correctly inside declaration bodies, and
required special handling ('analyzeInDependedAnalysisSession()').
Dangling files, the on-air replacement, works seamlessly, and it is
available in all contexts.
This commit is contained in:
Yan Zhulanow
2024-01-11 19:03:41 +09:00
committed by Space Team
parent 9021fdaf83
commit 9227359256
15 changed files with 7 additions and 885 deletions
@@ -21,7 +21,6 @@ import org.jetbrains.kotlin.analysis.api.symbols.KtSymbolProviderByJavaPsi
import org.jetbrains.kotlin.analysis.project.structure.KtModule
import org.jetbrains.kotlin.analysis.project.structure.ProjectStructureProvider
import org.jetbrains.kotlin.psi.KtElement
import org.jetbrains.kotlin.psi.KtFile
@OptIn(KtAnalysisApiInternals::class, KtAnalysisNonPublicApi::class)
@Suppress("LeakingThis")
@@ -79,8 +78,4 @@ class KtFe10AnalysisSession(
@Suppress("AnalysisApiMissingLifetimeCheck")
override val substitutorProviderImpl: KtSubstitutorProvider
get() = throw NotSupportedForK1Exception()
@Suppress("OVERRIDE_DEPRECATION")
override fun createContextDependentCopy(originalKtFile: KtFile, elementToReanalyze: KtElement): KtAnalysisSession =
KtFe10AnalysisSession(originalKtFile.project, elementToReanalyze, token)
}