KTIJ-26423 [AA] Return more info from KtFirImportOptimizer

Deprecate `unusedImports`, since they are supposed to be computed
on the IDE side from now on based on the information from
Analysis API

Currently the `unusedImports` property is not removed completely
so it can still be used by the Kotlin side import optimizer
tests; they should be moved/adapted to the intellij repository
also
This commit is contained in:
Roman Golyshev
2023-07-27 16:23:38 +02:00
committed by teamcity
parent 43180597fe
commit 10df37ba8e
3 changed files with 12 additions and 5 deletions
@@ -16,6 +16,7 @@ abstract class AbstractAnalysisApiImportOptimizerTest : AbstractAnalysisApiBased
val mainKtFile = ktFiles.singleOrNull() ?: ktFiles.first { it.name == "main.kt" }
val unusedImports = analyseForTest(mainKtFile) {
val results = analyseImports(mainKtFile)
@Suppress("DEPRECATION")
results.unusedImports
}