KTIJ-26423 [AA] Get rid of local declarations in KtFirImportOptimizer

Adjust `computeImportableName` to return null for when passed symbol
is local
This commit is contained in:
Roman Golyshev
2023-10-24 17:29:32 +02:00
committed by teamcity
parent 421793673b
commit 306f404a69
13 changed files with 2 additions and 51 deletions
@@ -54,6 +54,8 @@ internal fun KtTypeNullability.toConeNullability() = when (this) {
* @return An [FqName] by which this symbol can be imported (if it is possible)
*/
internal fun FirCallableSymbol<*>.computeImportableName(useSiteSession: FirSession): FqName? {
if (callableId.isLocal) return null
// if classId == null, callable is topLevel
val containingClassId = callableId.classId
?: return callableId.asSingleFqName()