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

refactor(ast_tools): add Derive::snake_name method #6717

Merged

Conversation

overlookmotel
Copy link
Contributor

@overlookmotel overlookmotel commented Oct 20, 2024

Follow-on after #6404. Add Derive::snake_name method which defaults to Self::trait_name().to_case(Case::Snake), but can be overridden. This allows moving the "special case" code for ESTree filename into estree.rs.

Copy link

graphite-app bot commented Oct 20, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@overlookmotel overlookmotel changed the title refactor(ast_tools): add Derive::filename method refactor(ast_tools): add Derive::snake_name method Oct 20, 2024
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Oct 20, 2024
@overlookmotel overlookmotel marked this pull request as ready for review October 20, 2024 21:40
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Oct 21, 2024
Copy link
Member

Boshen commented Oct 21, 2024

Merge activity

  • Oct 20, 10:55 PM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Oct 20, 10:55 PM EDT: A user added this pull request to the Graphite merge queue.
  • Oct 20, 11:00 PM EDT: A user merged this pull request with the Graphite merge queue.

Follow-on after #6404. Add `Derive::snake_name` method which defaults to `Self::trait_name().to_case(Case::Snake)`, but can be overridden. This allows moving the "special case" code for `ESTree` filename into `estree.rs`.
@Boshen Boshen force-pushed the 10-20-refactor_ast_tools_add_derive_filename_method branch from 37cb2c0 to 41a6ad6 Compare October 21, 2024 02:55
@graphite-app graphite-app bot merged commit 41a6ad6 into main Oct 21, 2024
15 checks passed
@graphite-app graphite-app bot deleted the 10-20-refactor_ast_tools_add_derive_filename_method branch October 21, 2024 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-merge Merge with Graphite Merge Queue A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants