Add a TargetKind for annotations on imports, exports, and part directives. #52274
Labels
devexp-pkg-meta
Issues related to package:meta
legacy-area-analyzer
Use area-devexp instead.
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
This might be blocked on changing
TargetKind
into a class with static constants instead of an enum as discussed in #49796The recommended pattern for using
@GenerateNiceMocks
frompackage: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.The text was updated successfully, but these errors were encountered: