Content-Length: 281155 | pFad | https://github.com/angular/angular/pull/60602

86 Fixes for the inject migration by crisbeto · Pull Request #60602 · angular/angular · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for the inject migration #60602

Closed

Conversation

crisbeto
Copy link
Member

Fixes a couple of issues in the inject migration that came up internally.

fix(migrations): inject migration not handling super parameter referenced via this

The inject migration has some logic that treats parameters referenced directly inside of super differently. This logic didn't account for the fact that the parameters could be inside of inline functions which have less strict access requirements.

fix(migrations): handle shorthand assignments in super call

Fixes that the logic which checks whether a parameter is used inside a super call wasn't accounting for shorthand assignments.

…nced via this

The inject migration has some logic that treats parameters referenced directly inside of `super` differently. This logic didn't account for the fact that the parameters could be inside of inline functions which have less strict access requirements.
Fixes that the logic which checks whether a parameter is used inside a `super` call wasn't accounting for shorthand assignments.
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Mar 28, 2025
@crisbeto crisbeto requested a review from devversion March 28, 2025 09:10
@angular-robot angular-robot bot added the area: migrations Issues related to `ng update` migrations label Mar 28, 2025
@ngbot ngbot bot added this to the Backlog milestone Mar 28, 2025
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 28, 2025
@thePunderWoman
Copy link
Contributor

This PR was merged into the repository by commit 0c53970.

The changes were merged into the following branches: main, 19.2.x

thePunderWoman pushed a commit that referenced this pull request Mar 28, 2025
…nced via this (#60602)

The inject migration has some logic that treats parameters referenced directly inside of `super` differently. This logic didn't account for the fact that the parameters could be inside of inline functions which have less strict access requirements.

PR Close #60602
thePunderWoman pushed a commit that referenced this pull request Mar 28, 2025
Fixes that the logic which checks whether a parameter is used inside a `super` call wasn't accounting for shorthand assignments.

PR Close #60602
thePunderWoman pushed a commit that referenced this pull request Mar 28, 2025
Fixes that the logic which checks whether a parameter is used inside a `super` call wasn't accounting for shorthand assignments.

PR Close #60602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: migrations Issues related to `ng update` migrations target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/angular/angular/pull/60602

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy