Skip to content

fix(ast_visit): Utf8ToUtf16Converter process decorators before class#10449

Merged
graphite-app[bot] merged 1 commit intomainfrom
04-16-fix_ast_visit_utf8toutf16converter_process_decorators_before_class
Apr 17, 2025
Merged

fix(ast_visit): Utf8ToUtf16Converter process decorators before class#10449
graphite-app[bot] merged 1 commit intomainfrom
04-16-fix_ast_visit_utf8toutf16converter_process_decorators_before_class

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Apr 16, 2025

#10438 altered span of Class so it starts later in the case of @dec export class C {} and @dec export default class {}.

Update Utf8ToUtf16Converter to handle this odd case, and visit decorators before the export keyword before processing the span start of ExportNamedDeclaration / ExportDefaultDeclaration, so that span offsets are still processed in ascending order.

Copy link
Member Author


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-ast-tools Area - AST tools C-bug Category - Bug labels Apr 16, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Apr 16, 2025

CodSpeed Instrumentation Performance Report

Merging #10449 will not alter performance

Comparing 04-16-fix_ast_visit_utf8toutf16converter_process_decorators_before_class (6d3734b) with main (7e08618)

Summary

✅ 36 untouched benchmarks

@overlookmotel overlookmotel force-pushed the 04-16-fix_ast_visit_utf8toutf16converter_process_decorators_before_class branch from 3891368 to 1955293 Compare April 16, 2025 18:55
@overlookmotel overlookmotel marked this pull request as ready for review April 16, 2025 18:59
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Apr 17, 2025
Copy link
Member

Boshen commented Apr 17, 2025

Merge activity

#10449)

#10438 altered span of `Class` so it starts later in the case of `@dec export class C {}` and `@dec export default class {}`.

Update `Utf8ToUtf16Converter` to handle this odd case, and visit decorators before the `export` keyword before processing the span start of `ExportNamedDeclaration` / `ExportDefaultDeclaration`, so that span offsets are still processed in ascending order.
@graphite-app graphite-app bot force-pushed the 04-16-fix_ast_visit_utf8toutf16converter_process_decorators_before_class branch from 1955293 to 6d3734b Compare April 17, 2025 01:19
@graphite-app graphite-app bot merged commit 6d3734b into main Apr 17, 2025
29 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 17, 2025
@graphite-app graphite-app bot deleted the 04-16-fix_ast_visit_utf8toutf16converter_process_decorators_before_class branch April 17, 2025 01:26
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.

2 participants