@@ -1205,17 +1205,17 @@ open class KotlinUsesExtractor(
1205
1205
val ids = getLocallyVisibleFunctionLabels(f)
1206
1206
return ids.function.cast<T >()
1207
1207
} else {
1208
- val realFunction = kotlinFunctionToJavaEquivalent(f, noReplace)
1209
- return useFunctionCommon<T >(realFunction, getFunctionLabel(realFunction, classTypeArgsIncludingOuterClasses))
1208
+ return useFunction(f, null , classTypeArgsIncludingOuterClasses, noReplace)
1210
1209
}
1211
1210
}
1212
1211
1213
- fun <T : DbCallable > useFunction (f : IrFunction , parentId : Label <out DbElement >, classTypeArgsIncludingOuterClasses : List <IrTypeArgument >? , noReplace : Boolean = false) =
1214
- kotlinFunctionToJavaEquivalent(f, noReplace).let {
1215
- useFunctionCommon< T > (it, getFunctionLabel(it, parentId, classTypeArgsIncludingOuterClasses))
1212
+ fun <T : DbCallable > useFunction (f : IrFunction , parentId : Label <out DbElement >? , classTypeArgsIncludingOuterClasses : List <IrTypeArgument >? , noReplace : Boolean = false): Label < out T > {
1213
+ return kotlinFunctionToJavaEquivalent(f, noReplace).let {
1214
+ useFunction (it, getFunctionLabel(it, parentId, classTypeArgsIncludingOuterClasses))
1216
1215
}
1216
+ }
1217
1217
1218
- private fun <T : DbCallable > useFunctionCommon (f : IrFunction , label : String ): Label <out T > {
1218
+ private fun <T : DbCallable > useFunction (f : IrFunction , label : String ): Label <out T > {
1219
1219
val id: Label <T > = tw.getLabelFor(label)
1220
1220
if (isExternalDeclaration(f)) {
1221
1221
extractFunctionLaterIfExternalFileMember(f)
0 commit comments