File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 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)
234234fun KSDeclaration.isJavaPackagePrivate () = this .getVisibility() == Visibility .JAVA_PACKAGE
235235
236236fun KSDeclaration.closestClassDeclaration (): KSClassDeclaration ? {
237- if (this is KSClassDeclaration ) {
238- return this
237+ return if (this is KSClassDeclaration ) {
238+ this
239239 } else {
240- return this .parentDeclaration?.closestClassDeclaration()
240+ this .parentDeclaration?.closestClassDeclaration()
241241 }
242242}
243243
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import com.google.devtools.ksp.symbol.KSNode
2222
2323class CommandLineKSPLogger : KSPLogger {
2424 // TODO: support logging level.
25- val messager = System .err
25+ private val messager = System .err
2626 override fun logging (message : String , symbol : KSNode ? ) {
2727 messager.println (message)
2828 }
You can’t perform that action at this time.
0 commit comments