Skip to content

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Jul 29, 2024

Currently we use some short variable names like t and r in the generated factory functions. They can conflict with local symbols with the same names, if they're used for DI.

These changes rename the parameters to reduce the change for conflicts.

Fixes #57168.

@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 area: compiler Issues related to `ngc`, Angular's template compiler labels Jul 29, 2024
@ngbot ngbot bot added this to the Backlog milestone Jul 29, 2024
@crisbeto crisbeto marked this pull request as ready for review July 29, 2024 12:34
@crisbeto crisbeto requested review from JoostK and alxhub July 29, 2024 12:54
@crisbeto crisbeto removed the request for review from alxhub July 29, 2024 15:00
@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 Jul 29, 2024
@dylhunn
Copy link
Contributor

dylhunn commented Jul 29, 2024

This PR was merged into the repository by commit 67e0940.

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

@dylhunn dylhunn closed this in 67e0940 Jul 29, 2024
dylhunn pushed a commit that referenced this pull request Jul 29, 2024
…nd local variables (#57181)

Currently we use some short variable names like `t` and `r` in the generated factory functions. They can conflict with local symbols with the same names, if they're used for DI.

These changes add a `ɵ` to the generated variables to reduce the chance of conflicts.

Fixes #57168.

PR Close #57181
thePunderWoman added a commit to thePunderWoman/angular that referenced this pull request Aug 1, 2024
@thePunderWoman thePunderWoman reopened this Aug 1, 2024
@thePunderWoman thePunderWoman added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews state: blocked and removed action: merge The PR is ready for merge by the caretaker labels Aug 1, 2024
thePunderWoman added a commit that referenced this pull request Aug 1, 2024
…actory and local variables (#57181)" (#57230)

This reverts commit 67e0940.

PR Close #57230
thePunderWoman added a commit that referenced this pull request Aug 1, 2024
…actory and local variables (#57181)" (#57230)

This reverts commit 67e0940.

PR Close #57230
@crisbeto crisbeto force-pushed the 57168/factory-conflict branch 2 times, most recently from 9d1e3c2 to 97d8924 Compare August 7, 2024 12:19
…nd local variables

Currently we use some short variable names like `t` and `r` in the generated factory functions. They can conflict with local symbols with the same names, if they're used for DI.

These changes rename the parameters to reduce the change for conflicts.

Fixes angular#57168.
@crisbeto crisbeto force-pushed the 57168/factory-conflict branch from 97d8924 to c9f2863 Compare August 7, 2024 12:27
@crisbeto
Copy link
Member Author

crisbeto commented Aug 7, 2024

I've changed the naming scheme so the parameters don't contain any special characters. I've also run a TGP which is passing.

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews state: blocked labels Aug 7, 2024
@thePunderWoman
Copy link
Contributor

This PR was merged into the repository by commit d9d68e7.

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

thePunderWoman pushed a commit that referenced this pull request Aug 7, 2024
…nd local variables (#57181)

Currently we use some short variable names like `t` and `r` in the generated factory functions. They can conflict with local symbols with the same names, if they're used for DI.

These changes rename the parameters to reduce the change for conflicts.

Fixes #57168.

PR Close #57181
@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 Sep 7, 2024
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: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When using name 't' for variable exception is throwing

4 participants