Skip to content
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

Emit constants as Dart constants instead of external getters #294

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

srujzs
Copy link
Contributor

@srujzs srujzs commented Aug 28, 2024

Closes #285

These constants have a predetermined value according to the IDL and therefore do not need to be external. This allows users to switch over constants instead of equality checks.

Because they are now non-external, this triggers a 'constant_identifier_names' lint. To avoid ignoring this lint globally, analysis_options.yaml is forked into each package. Now unneeded ignores are pruned out of each one.

Closes dart-lang#285

These constants have a predetermined value according to the
IDL and therefore do not need to be external. This allows
users to switch over constants instead of equality checks.

Because they are now non-external, this triggers a
'constant_identifier_names' lint. To avoid ignoring this
lint globally, analysis_options.yaml is forked into each
package. Now unneeded ignores are pruned out of each one.
@srujzs srujzs requested a review from kevmoo August 29, 2024 00:30
@kevmoo
Copy link
Member

kevmoo commented Aug 29, 2024

Sweet!

@srujzs srujzs merged commit fcd8123 into dart-lang:main Sep 3, 2024
15 checks passed
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.

Make constants that have a value in the IDL non-external
2 participants