Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented Dec 5, 2025

This one takes a type argument instead of as a tree argument. This makes mapping such annotations a lot faster and also safer. In fact, in retrospect, most annotations could be represented as CompactAnnotations.

CompactAnnotation is extended by RetainingAnnotation, which is reserved for @retains, @retainsByName and @retainsCap. We make sure that all annotations with these classes are represented as RetainingAnnotations.

For now there are no CompactAnnotations other than @RetainingAnnotations but this could be changed in the future.

@odersky odersky force-pushed the opt-annots branch 3 times, most recently from 9af8000 to 66aa6bb Compare December 8, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant