Skip to content

Commit c0b6d1d

Browse files
committed
Kotlin: Let useFunction worry about isLocalFunction for us
1 parent 46446f9 commit c0b6d1d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -732,12 +732,9 @@ open class KotlinFileExtractor(
732732

733733
val id =
734734
idOverride
735-
?: if (f.isLocalFunction())
736-
getLocallyVisibleFunctionLabels(f).function
737-
else
738-
// If this is a class that would ordinarily be replaced by a Java equivalent (e.g. kotlin.Map -> java.util.Map),
739-
// don't replace here, really extract the Kotlin version:
740-
useFunction<DbCallable>(f, parentId, classTypeArgsIncludingOuterClasses, noReplace = true)
735+
?: // If this is a class that would ordinarily be replaced by a Java equivalent (e.g. kotlin.Map -> java.util.Map),
736+
// don't replace here, really extract the Kotlin version:
737+
useFunction<DbCallable>(f, parentId, classTypeArgsIncludingOuterClasses, noReplace = true)
741738

742739
val sourceDeclaration =
743740
if (typeSubstitution != null && idOverride == null)

0 commit comments

Comments
 (0)