Introduce StandardNames.IMPLICIT_LAMBDA_PARAMETER_NAME

and use it instead of hardcoded constant
This commit is contained in:
Ilya Kirillov
2023-06-26 15:54:33 +02:00
committed by Space Team
parent 0a1f27e43a
commit 5b4916a808
6 changed files with 11 additions and 5 deletions
@@ -333,7 +333,7 @@ class FunctionDescriptorResolver(
// it parameter for lambda
val valueParameterDescriptor = expectedValueParameters.single()
val it = ValueParameterDescriptorImpl(
functionDescriptor, null, 0, Annotations.EMPTY, Name.identifier("it"),
functionDescriptor, null, 0, Annotations.EMPTY, StandardNames.IMPLICIT_LAMBDA_PARAMETER_NAME,
expectedParameterTypes!!.single(), valueParameterDescriptor.declaresDefaultValue(),
valueParameterDescriptor.isCrossinline, valueParameterDescriptor.isNoinline,
valueParameterDescriptor.varargElementType, SourceElement.NO_SOURCE