File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed
kotlin-extractor/src/main/kotlin
ql/test/kotlin/library-tests/java_and_kotlin_internal Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -821,7 +821,7 @@ open class KotlinUsesExtractor(
821821 OperatorNameConventions .INVOKE .asString())
822822
823823 fun getSuffixIfInternal () =
824- if (f.visibility == DescriptorVisibilities .INTERNAL && f !is IrConstructor ) {
824+ if (f.visibility == DescriptorVisibilities .INTERNAL && f !is IrConstructor && ! (f.parent is IrFile || isExternalFileClassMember(f)) ) {
825825 " \$ " + getJvmModuleName(f)
826826 } else {
827827 " "
Original file line number Diff line number Diff line change 11public class Java {
22 void javaFun () {
33 new Kotlin ().kotlinFun$main ();
4+ KotlinKt .topLevelKotlinFun ();
45 }
56}
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ public class Kotlin {
33 }
44}
55
6+ internal fun topLevelKotlinFun () { }
Original file line number Diff line number Diff line change 11isPublic
22isInternal
33| Kotlin.kt:2:11:3:2 | kotlinFun$main |
4+ | Kotlin.kt:6:10:6:36 | topLevelKotlinFun |
45modifiers_methods
56| file://:0:0:0:0 | final | Kotlin.kt:2:11:3:2 | kotlinFun$main |
7+ | file://:0:0:0:0 | final | Kotlin.kt:6:10:6:36 | topLevelKotlinFun |
68| file://:0:0:0:0 | internal | Kotlin.kt:2:11:3:2 | kotlinFun$main |
9+ | file://:0:0:0:0 | internal | Kotlin.kt:6:10:6:36 | topLevelKotlinFun |
10+ | file://:0:0:0:0 | static | Kotlin.kt:6:10:6:36 | topLevelKotlinFun |
711#select
812| Kotlin.kt:2:11:3:2 | kotlinFun$main | final |
913| Kotlin.kt:2:11:3:2 | kotlinFun$main | internal |
14+ | Kotlin.kt:6:10:6:36 | topLevelKotlinFun | final |
15+ | Kotlin.kt:6:10:6:36 | topLevelKotlinFun | internal |
16+ | Kotlin.kt:6:10:6:36 | topLevelKotlinFun | static |
You can’t perform that action at this time.
0 commit comments