File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
java/kotlin-extractor/src/main/kotlin Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2457,8 +2457,12 @@ open class KotlinFileExtractor(
2457
2457
2458
2458
val fn = getFunctionsByFqName(pluginContext, functionPkg, functionName)
2459
2459
.firstOrNull { fnSymbol ->
2460
- fnSymbol.owner.parentClassOrNull?.fqNameWhenAvailable?.asString() == type &&
2461
- fnSymbol.owner.valueParameters.map { it.type.classFqName?.asString() }.toTypedArray() contentEquals parameterTypes
2460
+ val owner = fnSymbol.owner
2461
+ (owner.parentClassOrNull?.fqNameWhenAvailable?.asString() == type
2462
+ ||
2463
+ (owner.parent is IrExternalPackageFragment && getFileClassFqName(owner)?.asString() == type))
2464
+ &&
2465
+ owner.valueParameters.map { it.type.classFqName?.asString() }.toTypedArray() contentEquals parameterTypes
2462
2466
}?.owner
2463
2467
2464
2468
if (fn != null ) {
You can’t perform that action at this time.
0 commit comments