Skip to content

refactor(formatter): simplify AstNodeIterator and expand impl_ast_node_vec macro#18647

Merged
graphite-app[bot] merged 1 commit intomainfrom
01-28-refactor_formatter_simplify_astnodeiterator_and_expand_impl_ast_node_vec_macro
Jan 28, 2026
Merged

refactor(formatter): simplify AstNodeIterator and expand impl_ast_node_vec macro#18647
graphite-app[bot] merged 1 commit intomainfrom
01-28-refactor_formatter_simplify_astnodeiterator_and_expand_impl_ast_node_vec_macro

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Jan 28, 2026

Expand impl_ast_node_vec! macro to handle Directive and Statement cases that previously required manual implementations. This will make it easier to handle other nodes that also need to manage the following span of the last item of Vec.

@github-actions github-actions bot added the A-formatter Area - Formatter label Jan 28, 2026
Copy link
Member Author

Dunqing commented Jan 28, 2026


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 the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Jan 28, 2026
@Dunqing Dunqing force-pushed the 01-28-refactor_formatter_simplify_astnodeiterator_and_expand_impl_ast_node_vec_macro branch 2 times, most recently from 2f06d1e to cb51764 Compare January 28, 2026 02:52
@Dunqing Dunqing force-pushed the 01-27-fix_formatter_don_t_add_extra_semicolon_on_suppressed_class_properties branch from 9c3931a to beb0b47 Compare January 28, 2026 02:52
@Dunqing Dunqing marked this pull request as ready for review January 28, 2026 02:53
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Jan 28, 2026
@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 28, 2026

Merge activity

…node_vec` macro (#18647)

Expand `impl_ast_node_vec!` macro to handle `Directive` and `Statement` cases that previously required manual implementations. This will make it easier to handle other nodes that also need to manage the following span of the last item of Vec.
@graphite-app graphite-app bot force-pushed the 01-27-fix_formatter_don_t_add_extra_semicolon_on_suppressed_class_properties branch from beb0b47 to 2f70254 Compare January 28, 2026 03:42
@graphite-app graphite-app bot force-pushed the 01-28-refactor_formatter_simplify_astnodeiterator_and_expand_impl_ast_node_vec_macro branch from cb51764 to f4f70bc Compare January 28, 2026 03:43
Base automatically changed from 01-27-fix_formatter_don_t_add_extra_semicolon_on_suppressed_class_properties to main January 28, 2026 03:48
@graphite-app graphite-app bot merged commit f4f70bc into main Jan 28, 2026
22 checks passed
@graphite-app graphite-app bot deleted the 01-28-refactor_formatter_simplify_astnodeiterator_and_expand_impl_ast_node_vec_macro branch January 28, 2026 03:49
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-formatter Area - Formatter 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

Comments