KT-50862 Add name property to KtSignature
See the KDoc of the property for the reasons why it was created
This commit is contained in:
+5
-1
@@ -389,7 +389,11 @@ internal class KtFe10CallResolver(
|
||||
this is PropertyDescriptor && kind == CallableMemberDescriptor.Kind.SYNTHESIZED
|
||||
|
||||
private fun ResolvedCall<*>.createArgumentMapping(signature: KtFunctionLikeSignature<*>): LinkedHashMap<KtExpression, KtVariableLikeSignature<KtValueParameterSymbol>> {
|
||||
val parameterSignatureByName = signature.valueParameters.associateBy { it.symbol.name }
|
||||
val parameterSignatureByName = signature.valueParameters.associateBy {
|
||||
// ResolvedCall.valueArguments have their names affected by the `@ParameterName` annotations,
|
||||
// so we use `name` instead of `symbol.name`
|
||||
it.name
|
||||
}
|
||||
val result = LinkedHashMap<KtExpression, KtVariableLikeSignature<KtValueParameterSymbol>>()
|
||||
for ((parameter, arguments) in valueArguments) {
|
||||
val parameterSymbol = KtFe10DescValueParameterSymbol(parameter, analysisContext)
|
||||
|
||||
+6
@@ -736,6 +736,12 @@ public class Fe10ResolveCallTestGenerated extends AbstractResolveCallTest {
|
||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/variableAsFunctionWithParameterNameAnnotationConflict.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("variableAsFunctionWithParameterNameAnnotationConflict2.kt")
|
||||
public void testVariableAsFunctionWithParameterNameAnnotationConflict2() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/variableAsFunctionWithParameterNameAnnotationConflict2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("variableAsFunctionWithParameterNameGeneric.kt")
|
||||
public void testVariableAsFunctionWithParameterNameGeneric() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user