Skip to content

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`/`ng generate` 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
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: migrations Issues related to `ng update`/`ng generate` 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