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

WIP adding CodeGenerator.group #984

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

RBusarow
Copy link
Member

No description provided.

@RBusarow RBusarow force-pushed the rick/CodeGenerator_group branch 4 times, most recently from 39d357e to a720e2f Compare April 26, 2024 20:44
@RBusarow RBusarow marked this pull request as ready for review April 26, 2024 20:44
@SteinerOk
Copy link

SteinerOk commented May 15, 2024

Hey @RBusarow, is it PR related with this my bug: #953 ?

The `group` value allows for basic scheduling of code generators. All code generators with the same group will be executed in a loop together until no new code is generated.
* The default [group][CodeGenerator.group] for code generators.
* A lower group value will be executed before any higher group value.
*/
public const val GROUP_DEFAULT: Int = 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use an enum for this, too! Integers for priority levels tend to lose information fairly readily. An enum would retain ordering guarantees, but enforce naming and make it a lot easier to nav through and find out where a particular CodeGenerator sits in the group.

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.

None yet

3 participants