[Analysis API] remove unneeded analyzeWithSymbolAsContext

This commit is contained in:
Ilya Kirillov
2022-06-28 16:15:45 +02:00
parent 3dffe828b1
commit 00b893444c
3 changed files with 0 additions and 30 deletions
@@ -24,19 +24,6 @@ class KtFe10AnalysisSessionProvider(project: Project) : KtAnalysisSessionProvide
return KtFe10AnalysisSession(useSiteKtElement, factory.create(project))
}
override fun getAnalysisSessionBySymbol(contextSymbol: KtSymbol): KtAnalysisSession {
if (contextSymbol is KtFe10Symbol) {
return KtFe10AnalysisSession(contextSymbol.analysisContext, contextSymbol.analysisContext.contextElement.getKtModule())
} else {
val contextElement = contextSymbol.psi
if (contextElement is KtElement) {
return KtFe10AnalysisSession(contextElement, contextSymbol.token)
}
}
throw UnsupportedOperationException("getAnalysisSessionBySymbol() should not be used on KtFe10AnalysisSession")
}
override fun getAnalysisSessionByUseSiteKtModule(useSiteKtModule: KtModule, factory: KtLifetimeTokenFactory): KtAnalysisSession {
throw UnsupportedOperationException("getAnalysisSessionByModule() should not be used on KtFe10AnalysisSession")
}