IR: remove descriptor usage
This commit is contained in:
@@ -173,9 +173,8 @@ fun IrExpression.coerceToUnitIfNeeded(valueType: IrType, irBuiltIns: IrBuiltIns)
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ObsoleteDescriptorBasedAPI
|
fun IrFunctionAccessExpression.usesDefaultArguments(): Boolean =
|
||||||
fun IrMemberAccessExpression<*>.usesDefaultArguments(): Boolean =
|
symbol.owner.valueParameters.any { this.getValueArgument(it.index) == null }
|
||||||
(symbol.descriptor as CallableDescriptor).valueParameters.any { this.getValueArgument(it) == null }
|
|
||||||
|
|
||||||
val IrClass.functions: Sequence<IrSimpleFunction>
|
val IrClass.functions: Sequence<IrSimpleFunction>
|
||||||
get() = declarations.asSequence().filterIsInstance<IrSimpleFunction>()
|
get() = declarations.asSequence().filterIsInstance<IrSimpleFunction>()
|
||||||
|
|||||||
Reference in New Issue
Block a user