Support for named arguments in dynamic calls

This commit is contained in:
Andrey Breslav
2014-11-13 04:03:41 +02:00
parent 0ebc478d50
commit 645d931a9e
4 changed files with 22 additions and 4 deletions
@@ -109,15 +109,14 @@ object DynamicCallableDescriptors {
}
private fun createValueParameters(owner: DeclarationDescriptor, call: Call): List<ValueParameterDescriptor> =
call.getValueArguments().indices.map {
index
->
call.getValueArguments().withIndices().map { p ->
val (index, arg) = p
ValueParameterDescriptorImpl(
owner,
null,
index,
Annotations.EMPTY,
Name.identifier("p$index"),
arg.getArgumentName()?.getReferenceExpression()?.getReferencedNameAsName() ?: Name.identifier("p$index"),
DynamicType,
false,
null,