Skip to content

Add a TargetKind for annotations on imports, exports, and part directives. #52274

Description

@natebosch

This might be blocked on changing TargetKind into a class with static constants instead of an enum as discussed in #49796

The recommended pattern for using @GenerateNiceMocks from package:mockito is to annotate the import of the generated file. This is a pattern we are likely to repeat into other packages.

It would be great if we can statically require the annotation on an import or export. I think it could be fine to have a single TargetKind.directive, but it may be more useful to split it up into imports, exports, and parts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestdevexp-pkg-metaIssues related to package:metalegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions