@@ -77,7 +77,7 @@ open class KotlinUsesExtractor(
77
77
TypeResult (fakeKotlinType(), " " , " " )
78
78
)
79
79
80
- fun useFileClassType (pkg : String , jvmName : String ) = TypeResults (
80
+ private fun useFileClassType (pkg : String , jvmName : String ) = TypeResults (
81
81
TypeResult (extractFileClass(pkg, jvmName), " " , " " ),
82
82
TypeResult (fakeKotlinType(), " " , " " )
83
83
)
@@ -94,13 +94,13 @@ open class KotlinUsesExtractor(
94
94
return id
95
95
}
96
96
97
- fun extractFileClass (fqName : FqName ): Label <out DbClassorinterface > {
97
+ private fun extractFileClass (fqName : FqName ): Label <out DbClassorinterface > {
98
98
val pkg = if (fqName.isRoot()) " " else fqName.parent().asString()
99
99
val jvmName = fqName.shortName().asString()
100
100
return extractFileClass(pkg, jvmName)
101
101
}
102
102
103
- fun extractFileClass (pkg : String , jvmName : String ): Label <out DbClassorinterface > {
103
+ private fun extractFileClass (pkg : String , jvmName : String ): Label <out DbClassorinterface > {
104
104
val qualClassName = if (pkg.isEmpty()) jvmName else " $pkg .$jvmName "
105
105
val label = " @\" class;$qualClassName \" "
106
106
val id: Label <DbClassorinterface > = tw.getLabelFor(label) {
@@ -799,7 +799,7 @@ open class KotlinUsesExtractor(
799
799
}
800
800
}
801
801
802
- fun parentOf (d : IrDeclaration ): IrDeclarationParent {
802
+ private fun parentOf (d : IrDeclaration ): IrDeclarationParent {
803
803
if (d is IrField ) {
804
804
return getFieldParent(d)
805
805
}
@@ -1739,7 +1739,7 @@ open class KotlinUsesExtractor(
1739
1739
it.isConst || it.isLateinit
1740
1740
} ? : false
1741
1741
1742
- fun getFieldParent (f : IrField ) =
1742
+ private fun getFieldParent (f : IrField ) =
1743
1743
f.parentClassOrNull?.let {
1744
1744
if (it.isCompanion && isDirectlyExposableCompanionObjectField(f))
1745
1745
it.parent
0 commit comments