Skip to content

Properly support @all annotation use site target #2438

@ting-yuan

Description

@ting-yuan

Given the new all annotation use site target that is coming as experimental in Kotlin 2.2, it is inevitable to introduce a new, corresponding enum entry in KSP's AnnotationUseSiteTarget. While it won't break existing processors from ABI's perspective, it does:

  1. break source compatibility and potentially runtime compatibility if all is encountered, and
  2. make new processors which reference the new entry not binary compatible with older KSP implementations.

Implementation-wise, when getting annotations from synthetic elements, the originating element needs to be checked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions