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(
821
821
OperatorNameConventions .INVOKE .asString())
822
822
823
823
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)) ) {
825
825
" \$ " + getJvmModuleName(f)
826
826
} else {
827
827
" "
Original file line number Diff line number Diff line change 1
1
public class Java {
2
2
void javaFun () {
3
3
new Kotlin ().kotlinFun$main ();
4
+ KotlinKt .topLevelKotlinFun ();
4
5
}
5
6
}
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ public class Kotlin {
3
3
}
4
4
}
5
5
6
+ internal fun topLevelKotlinFun () { }
Original file line number Diff line number Diff line change 1
1
isPublic
2
2
isInternal
3
3
| Kotlin.kt:2:11:3:2 | kotlinFun$main |
4
+ | Kotlin.kt:6:10:6:36 | topLevelKotlinFun |
4
5
modifiers_methods
5
6
| 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 |
6
8
| 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 |
7
11
#select
8
12
| Kotlin.kt:2:11:3:2 | kotlinFun$main | final |
9
13
| 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