Kotlin: Remove KotlinSourceFileExtractor

This commit is contained in:
Ian Lynagh
2022-01-13 16:45:02 +00:00
parent c1c4e4f86c
commit e1cff50c39
5 changed files with 9 additions and 30 deletions

View File

@@ -28,6 +28,7 @@ import java.util.*
open class KotlinFileExtractor(
override val logger: FileLogger,
override val tw: FileTrapWriter,
val filePath: String,
dependencyCollector: OdasaOutput.TrapFileManager?,
externalClassExtractor: ExternalClassExtractor,
primitiveTypeMapping: PrimitiveTypeMapping,
@@ -2524,7 +2525,7 @@ open class KotlinFileExtractor(
}
if (parent is IrFile) {
if (this is KotlinSourceFileExtractor && this.filePath == parent.path) {
if (this.filePath == parent.path) {
val fileId = extractFileClass(parent)
tw.writeEnclInReftype(id, fileId)
} else {