Skip to content

Commit 3b9bd16

Browse files
committed
Kotlin: Mark some functions as private
1 parent a8b69e5 commit 3b9bd16

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ open class KotlinUsesExtractor(
7777
TypeResult(fakeKotlinType(), "", "")
7878
)
7979

80-
fun useFileClassType(pkg: String, jvmName: String) = TypeResults(
80+
private fun useFileClassType(pkg: String, jvmName: String) = TypeResults(
8181
TypeResult(extractFileClass(pkg, jvmName), "", ""),
8282
TypeResult(fakeKotlinType(), "", "")
8383
)
@@ -94,13 +94,13 @@ open class KotlinUsesExtractor(
9494
return id
9595
}
9696

97-
fun extractFileClass(fqName: FqName): Label<out DbClassorinterface> {
97+
private fun extractFileClass(fqName: FqName): Label<out DbClassorinterface> {
9898
val pkg = if (fqName.isRoot()) "" else fqName.parent().asString()
9999
val jvmName = fqName.shortName().asString()
100100
return extractFileClass(pkg, jvmName)
101101
}
102102

103-
fun extractFileClass(pkg: String, jvmName: String): Label<out DbClassorinterface> {
103+
private fun extractFileClass(pkg: String, jvmName: String): Label<out DbClassorinterface> {
104104
val qualClassName = if (pkg.isEmpty()) jvmName else "$pkg.$jvmName"
105105
val label = "@\"class;$qualClassName\""
106106
val id: Label<DbClassorinterface> = tw.getLabelFor(label) {
@@ -799,7 +799,7 @@ open class KotlinUsesExtractor(
799799
}
800800
}
801801

802-
fun parentOf(d: IrDeclaration): IrDeclarationParent {
802+
private fun parentOf(d: IrDeclaration): IrDeclarationParent {
803803
if (d is IrField) {
804804
return getFieldParent(d)
805805
}
@@ -1739,7 +1739,7 @@ open class KotlinUsesExtractor(
17391739
it.isConst || it.isLateinit
17401740
} ?: false
17411741

1742-
fun getFieldParent(f: IrField) =
1742+
private fun getFieldParent(f: IrField) =
17431743
f.parentClassOrNull?.let {
17441744
if (it.isCompanion && isDirectlyExposableCompanionObjectField(f))
17451745
it.parent

java/kotlin-extractor/src/main/kotlin/utils/ClassNames.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fun getIrDeclarationBinaryPath(d: IrDeclaration): String? {
130130
return null
131131
}
132132

133-
fun getUnknownBinaryLocation(s: String): String {
133+
private fun getUnknownBinaryLocation(s: String): String {
134134
return "/!unknown-binary-location/${s.replace(".", "/")}.class"
135135
}
136136

0 commit comments

Comments
 (0)