-
Notifications
You must be signed in to change notification settings - Fork 27k
fix(compiler): reduce chance of conflicts between generated factory and local variables #57181
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
Conversation
|
This PR was merged into the repository by commit 67e0940. The changes were merged into the following branches: main, 18.1.x |
…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
…actory and local variables (angular#57181)" This reverts commit 67e0940.
9d1e3c2 to
97d8924
Compare
…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.
97d8924 to
c9f2863
Compare
|
I've changed the naming scheme so the parameters don't contain any special characters. I've also run a TGP which is passing. |
|
This PR was merged into the repository by commit d9d68e7. The changes were merged into the following branches: main, 18.1.x |
…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
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently we use some short variable names like
tandrin 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.