Raw FIR: introduce lambda argument expressions

Without it we cannot distinguish lambda argument from just last argument
This commit is contained in:
Mikhail Glukhikh
2019-04-11 16:47:35 +03:00
parent cf72b13d84
commit b9f09afc6f
13 changed files with 144 additions and 31 deletions
@@ -617,9 +617,9 @@ internal class Fir2IrVisitor(
}
}
override fun visitNamedArgumentExpression(namedArgumentExpression: FirNamedArgumentExpression, data: Any?): IrElement {
override fun visitWrappedArgumentExpression(wrappedArgumentExpression: FirWrappedArgumentExpression, data: Any?): IrElement {
// TODO: change this temporary hack to something correct
return namedArgumentExpression.expression.toIrExpression()
return wrappedArgumentExpression.expression.toIrExpression()
}
private fun FirQualifiedAccess.toIrExpression(typeRef: FirTypeRef): IrExpression {