feat(ast)!: add scope_id to TSFunctionType#9559
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. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #9559 will create unknown performance changesComparing Summary
Benchmarks breakdown
|
|
The way to fix is correct, just need to figure out how Typescript solves that fails case. The Also can you add a test to https://github.com/oxc-project/oxc/blob/0928a192ee3c2901260c88610ea961de4d885703/crates/oxc_isolated_declarations/tests/fixtures/eliminate-imports.ts? |
There was a problem hiding this comment.
I found out how TypeScript handles infer X. The binding of infer should be always inserted into the TSConditionalType scope. So we need to do some check for TSInferType's TSTypeParameter in
oxc/crates/oxc_semantic/src/binder.rs
Lines 441 to 449 in aa3319e
This should be changed first in another PR.
|
yes, 🙂 i'm working on this in a bit. Copying typescript-eslint's implementation |
042c41c to
0b320fb
Compare
scope_id to TSFunctionTypescope_id to TSFunctionType
0b320fb to
8e8b0f6
Compare
scope_id to TSFunctionTypescope_id to TSFunctionType
|
@Dunqing please take a look when you've time 🙏 should be correct now |
631c84f to
c7147dc
Compare
9c25885 to
42d6dec
Compare
bed73ce to
e861c6b
Compare
e861c6b to
1df2bd1
Compare
c99e687 to
e9f1f62
Compare
a09b7e5 to
c89072e
Compare
Oh, I am sorry, I forgot the |
e9f1f62 to
491d294
Compare
c89072e to
4e178f9
Compare
491d294 to
47d7849
Compare
feecb6b to
539aa28
Compare
47d7849 to
e94fe89
Compare
scope_id to TSFunctionTypescope_id to TSFunctionType
e94fe89 to
a5a10b2
Compare
539aa28 to
603a94a
Compare
Merge activity
|
a5a10b2 to
bbb4f98
Compare
603a94a to
48a0394
Compare
|
thank you @Dunqing for your detailed reviews! 🙏 |

fixes #9558