[AA] Provide API for obtaining array element type of KtType

KTIJ-23199
This commit is contained in:
aleksandrina-streltsova
2023-06-21 17:17:00 +03:00
parent 37c2c862d8
commit 4ccea40651
3 changed files with 28 additions and 0 deletions
@@ -266,5 +266,10 @@ internal class KtFirTypeProvider(
}
return firSymbol.dispatchReceiverType(analysisSession.firSymbolBuilder)
}
override fun getArrayElementType(type: KtType): KtType? {
require(type is KtFirType)
return type.coneType.arrayElementType()?.asKtType()
}
}