Skip to content

fix(ast_visit): fix visitation order for BindingPattern in Utf8ToUtf16Converter#11003

Merged
graphite-app[bot] merged 1 commit intomainfrom
05-12-fix_ast_visit_fix_visitation_order_for_bindingpattern_in_utf8toutf16converter_
May 14, 2025
Merged

fix(ast_visit): fix visitation order for BindingPattern in Utf8ToUtf16Converter#11003
graphite-app[bot] merged 1 commit intomainfrom
05-12-fix_ast_visit_fix_visitation_order_for_bindingpattern_in_utf8toutf16converter_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented May 13, 2025

Fix visitation order in Utf8ToUtf16Converter to process span offsets in ascending order in BindingPattern.

type_annotation's span is within the span of kind, so need to visit type_annotation before processing span end of kind. The exception is BindingRestElement, where type_annotation's span start is after kind's span end.

@github-actions github-actions bot added the A-ast-tools Area - AST tools label May 13, 2025
Copy link
Member Author

overlookmotel commented May 13, 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.

@codspeed-hq
Copy link

codspeed-hq bot commented May 13, 2025

CodSpeed Instrumentation Performance Report

Merging #11003 will not alter performance

Comparing 05-12-fix_ast_visit_fix_visitation_order_for_bindingpattern_in_utf8toutf16converter_ (d0d04e3) with main (c0b68eb)

Summary

✅ 36 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 05-12-fix_ast_visit_fix_visitation_order_for_bindingpattern_in_utf8toutf16converter_ branch from 8133e5e to 3c210ef Compare May 13, 2025 14:23
@overlookmotel overlookmotel force-pushed the 05-12-fix_ast_visit_fix_visitation_order_for_bindingpattern_in_utf8toutf16converter_ branch from 3c210ef to 021aa8b Compare May 13, 2025 17:09
@overlookmotel overlookmotel marked this pull request as ready for review May 13, 2025 17:11
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label May 14, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented May 14, 2025

Merge activity

…tf16Converter` (#11003)

Fix visitation order in `Utf8ToUtf16Converter` to process span offsets in ascending order in `BindingPattern`.

`type_annotation`'s span is within the span of `kind`, so need to visit `type_annotation` before processing span end of `kind`. The exception is `BindingRestElement`, where `type_annotation`'s span start is after `kind`'s span end.
@graphite-app graphite-app bot force-pushed the 05-12-fix_ast_visit_fix_visitation_order_for_bindingpattern_in_utf8toutf16converter_ branch from 021aa8b to d0d04e3 Compare May 14, 2025 01:22
@graphite-app graphite-app bot merged commit d0d04e3 into main May 14, 2025
26 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 14, 2025
@graphite-app graphite-app bot deleted the 05-12-fix_ast_visit_fix_visitation_order_for_bindingpattern_in_utf8toutf16converter_ branch May 14, 2025 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast-tools Area - AST tools C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant