File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
java/kotlin-extractor/src/main/kotlin Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ open class KotlinUsesExtractor(
6767 TypeResult (fakeKotlinType(), " " , " " )
6868 )
6969
70- @OptIn(kotlin.ExperimentalStdlibApi ::class ) // Annotation required by kotlin versions < 1.5
7170 fun extractFileClass (f : IrFile ): Label <out DbClass > {
7271 val pkg = f.fqName.asString()
7372 val jvmName = getFileClassName(f)
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import org.jetbrains.kotlin.load.kotlin.JvmPackagePartSource
2222// for `that`.
2323private fun getName (d : IrDeclarationWithName ) = (d as ? IrAnnotationContainer )?.let { getJvmName(it) } ? : d.name.asString()
2424
25+ @OptIn(ExperimentalStdlibApi ::class ) // Annotation required by kotlin versions < 1.5
2526fun getFileClassName (f : IrFile ) =
2627 getJvmName(f) ? :
2728 ((f.fileEntry.name.replaceFirst(Regex (""" .*[/\\]""" ), " " )
You can’t perform that action at this time.
0 commit comments