Skip to content

Comments

fix(semantic): resolve reference incorrectly when a parameter references a parameter that hasn't been defined yet#4004

Merged
graphite-app[bot] merged 1 commit intomainfrom
07-02-fix_semantic_resolve_reference_incorrectly_when_a_parameter_references_a_parameter_that_hasn_t_been_defined_yet
Jul 2, 2024
Merged

fix(semantic): resolve reference incorrectly when a parameter references a parameter that hasn't been defined yet#4004
graphite-app[bot] merged 1 commit intomainfrom
07-02-fix_semantic_resolve_reference_incorrectly_when_a_parameter_references_a_parameter_that_hasn_t_been_defined_yet

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Jul 1, 2024

close: #3682

The TypeScript code that handles this is here. It looks complicated.

@graphite-app
Copy link
Contributor

graphite-app bot commented Jul 1, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Member Author

Dunqing commented Jul 1, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Dunqing and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added A-semantic Area - Semantic A-ast Area - AST labels Jul 1, 2024
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 1, 2024

CodSpeed Performance Report

Merging #4004 will not alter performance

Comparing 07-02-fix_semantic_resolve_reference_incorrectly_when_a_parameter_references_a_parameter_that_hasn_t_been_defined_yet (d995f94) with main (0fe22a8)

Summary

✅ 28 untouched benchmarks

@Dunqing Dunqing force-pushed the 07-02-fix_semantic_resolve_reference_incorrectly_when_a_parameter_references_a_parameter_that_hasn_t_been_defined_yet branch 2 times, most recently from 717d7c0 to c2a5382 Compare July 1, 2024 17:27
Copy link
Member

@Boshen Boshen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed more logical than what we had before.

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jul 2, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Jul 2, 2024

Merge activity

  • Jul 1, 10:11 PM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jul 1, 10:11 PM EDT: Boshen added this pull request to the Graphite merge queue.
  • Jul 1, 10:15 PM EDT: Boshen merged this pull request with the Graphite merge queue.

@Boshen Boshen force-pushed the 07-02-fix_semantic_resolve_reference_incorrectly_when_a_parameter_references_a_parameter_that_hasn_t_been_defined_yet branch from c2a5382 to d995f94 Compare July 2, 2024 02:12
@graphite-app graphite-app bot merged commit d995f94 into main Jul 2, 2024
@graphite-app graphite-app bot deleted the 07-02-fix_semantic_resolve_reference_incorrectly_when_a_parameter_references_a_parameter_that_hasn_t_been_defined_yet branch July 2, 2024 02:15
@github-actions github-actions bot mentioned this pull request Jul 2, 2024
Boshen added a commit that referenced this pull request Jul 2, 2024
## [0.16.3] - 2024-07-02

### Features

- b257d53 linter: Support report
`@typescript-eslint/consistent-type-imports` (#3895) (mysteryven)

### Bug Fixes

- 23038ad codegen: Print `TSFunctionType` inside `TSTypeAssertion`
(#3999) (Boshen)
- d995f94 semantic: Resolve reference incorrectly when a parameter
references a parameter that hasn't been defined yet (#4004) (Dunqing)
- bdee156 transformer/typescript: `declare class` incorrectly preserved
as runtime class (#3997) (Dunqing)
- a50ce3d transformer/typescript: Missing initializer for class
constructor arguments with `private` and `protected` modifier (#3996)
(Dunqing)

### Refactor

- 0fe22a8 ast: Reorder fields to reflect their visit order. (#3994)
(rzvxa)
- d0eac46 parser: Use function instead of trait to parse normal lists
(#4003) (Boshen)

Co-authored-by: Boshen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-ast Area - AST A-semantic Area - Semantic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolving reference incorrectly for FormalParameters

2 participants