Skip to content

refactor(ast): rename CommentNewlines fields#11151

Merged
graphite-app[bot] merged 1 commit intomainfrom
05-18-refactor_ast_rename_commentnewlines_fields
May 19, 2025
Merged

refactor(ast): rename CommentNewlines fields#11151
graphite-app[bot] merged 1 commit intomainfrom
05-18-refactor_ast_rename_commentnewlines_fields

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented May 19, 2025

Follow-on after #11096. Pure refactor. Our naming convention for bitflags! fields is not completely consistent, but mostly we use mixed case. Rename them to match that style.

Also, remove the LEADING_AND_TRAILING option, as it's only used in tests.

Copy link
Member Author

overlookmotel commented May 19, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@github-actions github-actions bot added A-parser Area - Parser A-ast Area - AST C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels May 19, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented May 19, 2025

CodSpeed Instrumentation Performance Report

Merging #11151 will not alter performance

Comparing 05-18-refactor_ast_rename_commentnewlines_fields (58c7de6) with main (385b84d)

Summary

✅ 38 untouched benchmarks

@overlookmotel overlookmotel marked this pull request as ready for review May 19, 2025 09:50
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label May 19, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented May 19, 2025

Merge activity

Follow-on after #11096. Pure refactor. Our naming convention for `bitflags!` fields is not completely consistent, but mostly we use mixed case. Rename them to match that style.

Also, remove the `LEADING_AND_TRAILING` option, as it's only used in tests.
@graphite-app graphite-app bot force-pushed the 05-18-refactor_ast_inline_comment_newline_flags_setters branch from 82e4dd2 to e5438dc Compare May 19, 2025 11:44
@graphite-app graphite-app bot force-pushed the 05-18-refactor_ast_rename_commentnewlines_fields branch from c509439 to 58c7de6 Compare May 19, 2025 11:44
Base automatically changed from 05-18-refactor_ast_inline_comment_newline_flags_setters to main May 19, 2025 11:50
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 19, 2025
@graphite-app graphite-app bot merged commit 58c7de6 into main May 19, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 05-18-refactor_ast_rename_commentnewlines_fields branch May 19, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST A-parser Area - Parser 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.

1 participant