Function trap ids: remove spaces between value parameters

Otherwise these won't match the IDs used by the Java extractor.
This commit is contained in:
Chris Smowton
2022-01-13 10:15:06 +00:00
committed by Ian Lynagh
parent f38f03e6c9
commit f177c2c5ae

View File

@@ -628,7 +628,7 @@ class X {
params.addAll(parameters)
params
}
val paramTypeIds = allParams.joinToString { "{${useType(erase(it.type)).javaResult.id}}" }
val paramTypeIds = allParams.joinToString(separator = ",") { "{${useType(erase(it.type)).javaResult.id}}" }
val labelReturnType = if (name == "<init>") pluginContext.irBuiltIns.unitType else erase(returnType)
val returnTypeId = useType(labelReturnType, TypeContext.RETURN).javaResult.id
// This suffix is added to generic methods (and constructors) to match the Java extractor's behaviour.