Skip to content

Commit 857a74c

Browse files
tamasvajksmowton
authored andcommitted
Adjust class label generation to handle classes in field initializers
1 parent 394ec56 commit 857a74c

File tree

4 files changed

+894
-2710
lines changed

4 files changed

+894
-2710
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,9 @@ open class KotlinUsesExtractor(
10181018
is IrFunction -> {
10191019
"{${useFunction<DbMethod>(parent)}}.$cls"
10201020
}
1021+
is IrField -> {
1022+
"{${useField(parent)}}.$cls"
1023+
}
10211024
else -> {
10221025
if (pkg.isEmpty()) cls else "$pkg.$cls"
10231026
}

java/ql/test/kotlin/library-tests/classes/DB-CHECK.expected

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)