Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Mar 21, 2025

Follow-on after #9913.

TSThisParameter is a TS-only type, so its fields aren't optional the way the TS fields of JS types are.

Fix the type def by using JS versions of added fields (False instead of TsFalse etc).

Also re-order the fields, so that name is first. We want the object shape to be the same (same field order) for all types which are Identifiers in the ESTree AST.

@github-actions github-actions bot added A-ast Area - AST C-bug Category - Bug labels Mar 21, 2025
Copy link
Member Author

overlookmotel commented Mar 21, 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.

Base automatically changed from 03-18-fix_ast_estree_fix_function.this_param_ to main March 21, 2025 07:31
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 21, 2025

CodSpeed Instrumentation Performance Report

Merging #9942 will not alter performance

Comparing 03-21-fix_ast_estree_fix_ts_type_def_for_tsthisparameter_ (9d1035e) with main (8228b74)

Summary

✅ 33 untouched benchmarks

@overlookmotel overlookmotel marked this pull request as ready for review March 21, 2025 07:35
@overlookmotel
Copy link
Member Author

I think this is fine, so merging. But cc @hi-ogawa for your information.

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Mar 21, 2025
Copy link
Member Author

overlookmotel commented Mar 21, 2025

Merge activity

  • Mar 21, 3:45 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 21, 3:45 AM EDT: A user added this pull request to the Graphite merge queue.
  • Mar 21, 3:52 AM EDT: A user merged this pull request with the Graphite merge queue.

Follow-on after #9913.

`TSThisParameter` is a TS-only type, so its fields aren't optional the way the TS fields of JS types are.

Fix the type def by using JS versions of added fields (`False` instead of `TsFalse` etc).

Also re-order the fields, so that `name` is first. We want the object shape to be the same (same field order) for all types which are `Identifier`s in the ESTree AST.
@graphite-app graphite-app bot force-pushed the 03-21-fix_ast_estree_fix_ts_type_def_for_tsthisparameter_ branch from d587d45 to 9d1035e Compare March 21, 2025 07:46
@graphite-app graphite-app bot merged commit 9d1035e into main Mar 21, 2025
24 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 21, 2025
@graphite-app graphite-app bot deleted the 03-21-fix_ast_estree_fix_ts_type_def_for_tsthisparameter_ branch March 21, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants