TargetKind
for resource identifiers annotations
#55937
Labels
area-meta
Cross-cutting, high-level issues (for tracking many other implementation issues, ...).
Based on the comment on a CL.
We are introducing an annotation
@ResourceIdentifier
to record usage of methods and their arguments and annotations at compile time, to be used in a link hook for tree shaking assets. The targets of this annotation are for now:Possible future targets might be
It is unclear if instance methods would be possible to track, as the use of
dynamic
prevents knowing if they are referenced at compile time.Currently, the placement of the annotation is checked in pkg/front_end. Would it make sense to introduce a custom
TargetKind
, or a set ofTargetKind
s, to be placed on the annotation definition itself?cc @bwilkerson
The text was updated successfully, but these errors were encountered: