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:
+1
-1
@@ -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")
|
val type = FirErrorTypeRefImpl(session, expression.psi, "Type calculating for ${expression::class} is not supported")
|
||||||
expression.resultType = type
|
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) {
|
fun <D> FirElement.visitNoTransform(transformer: FirTransformer<D>, data: D) {
|
||||||
|
|||||||
Reference in New Issue
Block a user