Support smap creation for functions inlined with IR inliner
This commit is contained in:
@@ -205,7 +205,7 @@ fun IrExpression.implicitCastIfNeededTo(type: IrType) =
|
||||
IrTypeOperatorCallImpl(startOffset, endOffset, type, IrTypeOperator.IMPLICIT_CAST, type, this)
|
||||
|
||||
fun IrFunctionAccessExpression.usesDefaultArguments(): Boolean =
|
||||
symbol.owner.valueParameters.any { this.getValueArgument(it.index) == null }
|
||||
symbol.owner.valueParameters.any { this.getValueArgument(it.index) == null && (!it.isVararg || it.defaultValue != null) }
|
||||
|
||||
fun IrValueParameter.createStubDefaultValue(): IrExpressionBody =
|
||||
factory.createExpressionBody(
|
||||
|
||||
Reference in New Issue
Block a user