@@ -107,7 +107,7 @@ open class KotlinFileExtractor(
107107 fun extractFileContents (file : IrFile , id : Label <DbFile >) {
108108 with (" file" , file) {
109109 val locId = tw.getWholeFileLocation()
110- val pkg = file.fqName .asString()
110+ val pkg = file.packageFqName .asString()
111111 val pkgId = extractPackage(pkg)
112112 tw.writeHasLocation(id, locId)
113113 tw.writeCupackage(id, pkgId)
@@ -1901,8 +1901,9 @@ open class KotlinFileExtractor(
19011901 verboseln(" No match as didn't find target package" )
19021902 return false
19031903 }
1904- if (targetPkg.fqName.asString() != pName) {
1905- verboseln(" No match as package name is ${targetPkg.fqName.asString()} " )
1904+ val targetName = targetPkg.packageFqName.asString()
1905+ if (targetName != pName) {
1906+ verboseln(" No match as package name is $targetName " )
19061907 return false
19071908 }
19081909 verboseln(" Match" )
@@ -2556,8 +2557,9 @@ open class KotlinFileExtractor(
25562557 verboseln(" No match as didn't find target package" )
25572558 return false
25582559 }
2559- if (targetPkg.fqName.asString() != pkgName) {
2560- verboseln(" No match as package name is ${targetPkg.fqName.asString()} not $pkgName " )
2560+ val targetName = targetPkg.packageFqName.asString()
2561+ if (targetName != pkgName) {
2562+ verboseln(" No match as package name is $targetName not $pkgName " )
25612563 return false
25622564 }
25632565 verboseln(" Match" )
0 commit comments