Skip to content

Remove use of private metadata extension #4053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 22, 2025
Merged

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented May 22, 2025

Fixes #4052

The awkwardness just comes from how metadata2 is not declared on Element2, but on Annotatable. So a little helper extension at the end helps us keep code concise.

Also:

  • bump the CI Dart version to 3.7.0 (could probably bump to 3.8.0 soon enough 🤷 )
  • adjust a test since @Required is recently deprecated.
  • adjust a test which includes new formatting for 3.7.0, I believe.

@sigurdm
Copy link
Contributor

sigurdm commented May 22, 2025

Seems some tests are still failing.

@sigurdm sigurdm requested a review from szakarias May 22, 2025 08:43
@srawlins
Copy link
Member Author

Ready for review.

@srawlins srawlins merged commit 2e124ad into dart-lang:main May 22, 2025
9 checks passed
@srawlins srawlins deleted the metadata branch May 22, 2025 13:44
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.

Stop using internal analyzer/lib/src/utilities/extensions/element.dart
2 participants