Optimization: directly call transformChildren on FirExpression

This is done instead of calling super transformer function,
which does the same after several redirections to other functions.
This commit is contained in:
Mikhail Glukhikh
2019-06-11 18:55:12 +03:00
parent 688c2cf74f
commit f4fefa042d
@@ -941,7 +941,7 @@ open class FirBodyResolveTransformer(val session: FirSession, val implicitTypeOn
val type = FirErrorTypeRefImpl(session, expression.psi, "Type calculating for ${expression::class} is not supported")
expression.resultType = type
}
return super.transformExpression(expression, data)
return (expression.transformChildren(this, data) as FirStatement).compose()
}
fun <D> FirElement.visitNoTransform(transformer: FirTransformer<D>, data: D) {