github google/ksp 1.5.0-1.0.0-alpha10

latest releases: 2.0.0-RC3-1.0.20, 1.9.24-1.0.20, 2.0.0-RC2-1.0.20...
3 years ago

Highlights

  • switch to Sequence for a bunch of APIs
    • Some of the API return type has been changed from Collection or List to Sequence, which will allow performance improvement if you use case involved early termination.
    • Note that because Sequence is lazily evaluated, it requires a terminal operation to make actual compute happen. Please check you uses around the impacted APIs to see if they have a terminal operation. Most common use case is Collection.map{} which will iterate through the collection by itself, but is non-terminal for Sequence and should be companied with toList() or replaced with forEach
    • For the whole list of APIs impacted by this change, please refer to this commit.
  • Added KSDeclaration.getDocString() API for getting the document comment. Note that it returns as is and you might need to process the string.
  • Origin for KS symbols from binaries is now split into KOTLIN_LIB and JAVA_LIB.
  • Added name mapping helper for mapping names from Kotlin to Java and Java to Kotlin.
  • asMemberOf() is now a member function of KSPropertyDeclaration and KSFunctionDeclaration, instead of Resolver
  • Add KSType.outerType and KSType.innerArguments
  • Introduce KSType.isFunctionType and KSType.isSuspendFunctionType

Don't miss a new ksp release

NewReleases is sending notifications on new releases.