Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api/src/main/kotlin/com/google/devtools/ksp/utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ fun KSDeclaration.isPrivate() = this.modifiers.contains(Modifier.PRIVATE)
fun KSDeclaration.isJavaPackagePrivate() = this.getVisibility() == Visibility.JAVA_PACKAGE

fun KSDeclaration.closestClassDeclaration(): KSClassDeclaration? {
if (this is KSClassDeclaration) {
return this
return if (this is KSClassDeclaration) {
this
} else {
return this.parentDeclaration?.closestClassDeclaration()
this.parentDeclaration?.closestClassDeclaration()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.google.devtools.ksp.symbol.KSNode

class CommandLineKSPLogger : KSPLogger {
// TODO: support logging level.
val messager = System.err
private val messager = System.err
override fun logging(message: String, symbol: KSNode?) {
messager.println(message)
}
Expand Down