fix(ast/estree): Fix TSFunctionType and TSCallSignatureDeclaration #9959
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
CodSpeed Instrumentation Performance ReportMerging #9959 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
👍
I'd guess (but don't know) that the this_param field isn't ignored entirely. It probably gets added to the start of params, same as in Function:
oxc/crates/oxc_ast/src/ast/js.rs
Lines 1701 to 1705 in 0cdeedd
#[estree(via = FunctionFormalParameters)] refers to this custom serializer (a bit tricky):
oxc/crates/oxc_ast/src/serialize.rs
Lines 384 to 421 in 0cdeedd
But maybe better to catch more of the "low hanging fruit" first, and come back to these more complex ones.
|
Oh damn it! Merge conflicts (probably conflicts with your other PR which I just merged). If you can rebase on main and run |
6462d5e to
35b3457
Compare
|
I fixed the conflicts. Will merge as soon as CI goes green. |
Ah so that is what |
|
Thanks for the review and fixing the conflicts @overlookmotel ! |
Skips estree serialisation for the field named
this_paramfor bothTSFunctionTypeandTSCallSignatureDeclarationnodes.PR is part of ongoing work to align our AST's ESTree output with that of TS-ESLint's. Relates to #9705.