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

Transform all enum-like classes to dart enums #1777

Merged
merged 9 commits into from
Aug 17, 2022
Merged

Transform all enum-like classes to dart enums #1777

merged 9 commits into from
Aug 17, 2022

Conversation

Goodwine
Copy link
Member

@Goodwine Goodwine commented Aug 15, 2022

Fixes #1746

  • Upgrades dart sdk to 2.17 in pubspecs to support enums
  • Transforms all enum-like classes to dart enums
  • Fixes new linter warnings around new Foo in comments

@Goodwine Goodwine marked this pull request as ready for review August 16, 2022 16:33
@Goodwine Goodwine requested a review from nex3 August 16, 2022 16:33
lib/src/ast/css/media_query.dart Outdated Show resolved Hide resolved
lib/src/callable/async.dart Outdated Show resolved Hide resolved
…new] to refer to constructors instead of [new Myclass], named constructors only had to drop 'new' and they are already pointing to the intended constructor
@Goodwine Goodwine requested a review from nex3 August 17, 2022 04:16
lib/src/functions/math.dart Outdated Show resolved Hide resolved
@Goodwine Goodwine merged commit 0b8a0f6 into main Aug 17, 2022
@Goodwine Goodwine deleted the enumify branch August 17, 2022 22:00
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.

Use Dart enums
2 participants