Package-level declarations

Methods to compare KSName and other KSP types to exported symbols.

NOTE: There is no Symbol.asKsName() like there is for the other integrations because KSName does not implement equals, so using it would be a trap.

Functions

Link copied to clipboard
fun NameLike.asKsName(resolver: Resolver): KSName

KSName does not implement equals, so equality checks will likely fail.

Link copied to clipboard
infix fun KSName?.eq(other: NameLike?): Boolean
infix fun NameLike?.eq(other: KSName?): Boolean

KSName does not implement equals, so this method compares it correctly to a symbol.

Link copied to clipboard
fun Resolver.getKsNameFromSymbol(symbol: NameLike): KSName

KSName does not implement equals, so equality checks will likely fail.

Link copied to clipboard
fun KSDeclaration.matches(symbol: NameLike): Boolean
fun KSName.matches(symbol: NameLike): Boolean
fun KSType.matches(symbol: NameLike): Boolean
Link copied to clipboard
fun KSTypeReference.resolveMatches(symbol: NameLike): Boolean