Skip to content

Refactor FlagSet #6562

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 25 commits into from
Jun 22, 2019
Merged

Refactor FlagSet #6562

merged 25 commits into from
Jun 22, 2019

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 24, 2019

  • Drop FlagSet#toString. This is in preparation of making Flags an opaque type
  • Drop distinction between FlagSet and FlagConjunction
  • Make FlagSet and Flag into opaque types, with extension methods
  • Refactor is into three methods: isOneOf, isAllOf taking a FlagSet and is taking a single Flag.

@odersky odersky changed the title Drop FlagSet#toString Make export forwarders retain Extension flag May 24, 2019
@odersky odersky changed the title Make export forwarders retain Extension flag Refactor FlagSet May 24, 2019
@odersky odersky force-pushed the refactor-flags branch 3 times, most recently from 34040f9 to 7e9d71d Compare May 24, 2019 20:02
@odersky odersky force-pushed the refactor-flags branch 2 times, most recently from 112783f to c475cbf Compare June 19, 2019 17:09
@odersky odersky removed the stat:wip label Jun 20, 2019
@odersky odersky force-pushed the refactor-flags branch 2 times, most recently from f66b17e to b7aeb2b Compare June 21, 2019 15:22
@odersky
Copy link
Contributor Author

odersky commented Jun 21, 2019

I am going to merge this tomorrow since it is mostly cosmetic. It would be a pain to review.

odersky added 12 commits June 22, 2019 11:02
Make FlagSet an opaque type and all flag ops extension methods
This is achieved by creating a new opaque type `Flag` that represents a single flag.
Todo: Should do the same in Tasty reflect
Where it makes sense, flag combinations have been renamed to follow
their alphabetically ordered definitions.
@odersky odersky merged commit d8ac6cd into scala:master Jun 22, 2019
@allanrenucci allanrenucci deleted the refactor-flags branch June 22, 2019 09:57
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.

2 participants