File tree 2 files changed +4
-4
lines changed
api/src/main/kotlin/com/google/devtools/ksp
kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,10 +234,10 @@ fun KSDeclaration.isPrivate() = this.modifiers.contains(Modifier.PRIVATE)
234
234
fun KSDeclaration.isJavaPackagePrivate () = this .getVisibility() == Visibility .JAVA_PACKAGE
235
235
236
236
fun KSDeclaration.closestClassDeclaration (): KSClassDeclaration ? {
237
- if (this is KSClassDeclaration ) {
238
- return this
237
+ return if (this is KSClassDeclaration ) {
238
+ this
239
239
} else {
240
- return this .parentDeclaration?.closestClassDeclaration()
240
+ this .parentDeclaration?.closestClassDeclaration()
241
241
}
242
242
}
243
243
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import com.google.devtools.ksp.symbol.KSNode
22
22
23
23
class CommandLineKSPLogger : KSPLogger {
24
24
// TODO: support logging level.
25
- val messager = System .err
25
+ private val messager = System .err
26
26
override fun logging (message : String , symbol : KSNode ? ) {
27
27
messager.println (message)
28
28
}
You can’t perform that action at this time.
0 commit comments