[FIR] Move unwrapSmartcastExpression util into :compiler:fir:tree module

This commit is contained in:
Dmitriy Novozhilov
2023-01-30 14:51:44 +02:00
committed by Space Team
parent d52b52ff5c
commit e70e85d51a
10 changed files with 15 additions and 14 deletions
@@ -85,8 +85,3 @@ fun FirElement.unwrapElement(): FirElement = when (this) {
else -> this
}
fun FirExpression.unwrapSmartcastExpression(): FirExpression =
when (this) {
is FirSmartCastExpression -> originalExpression
else -> this
}