Skip to content

Commit

Permalink
Merge pull request #656 from MaxMichel2/bugfix/hidden_error
Browse files Browse the repository at this point in the history
🐛 Fix hidden IllegalDestinationsSetup error
  • Loading branch information
raamcosta authored Jul 15, 2024
2 parents 5317708 + 31e8db0 commit 3614e43
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,13 @@ fun KSType.findActualClassDeclaration(): KSClassDeclaration? {
return declaration as? KSClassDeclaration?
}

fun KSClassDeclaration.toImportable(): Importable {
return Importable(
simpleName.asString(),
qualifiedName!!.asString()
)
fun KSClassDeclaration.toImportable(): Importable? {
return qualifiedName?.let { nonNullQualifiedName ->
Importable(
simpleName.asString(),
nonNullQualifiedName.asString()
)
}
}

val KSClassDeclaration.isNothing get() =
Expand Down

0 comments on commit 3614e43

Please sign in to comment.