-
Notifications
You must be signed in to change notification settings - Fork 26.6k
fix(compiler-cli): add warning for unused let declarations #57033
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
This PR was merged into the repository by commit c76b440. The changes were merged into the following branches: main, 18.1.x |
Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option. PR Close #57033
…ngular#57033)" This reverts commit c76b440.
Reopening - this broke at least 1 place in g3 that looks to be an incorrect identification of an unused let variable (it is used) Edit: Also, should this really target |
…attributes Fixes that the visitor which is used to implement template diagnostics isn't visiting the template attributes of structural directives.
Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option.
My thinking was that since Also the issue that caused the target to break has been fixed and I've run a TGP just in case (note the one unrelated failing target). |
This PR was merged into the repository by commit d4ff6bc. The changes were merged into the following branches: main |
Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option. PR Close #57033
…7033) Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option. PR Close angular#57033
…ngular#57033)" (angular#57088) This reverts commit c76b440. PR Close angular#57088
…attributes (angular#57033) Fixes that the visitor which is used to implement template diagnostics isn't visiting the template attributes of structural directives. PR Close angular#57033
…7033) Adds a new extended diagnostic that will flag `@let` declarations that aren't used within the template. The diagnostic can be turned off through the `extendedDiagnostics` compiler option. PR Close angular#57033
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. |
Adds a new extended diagnostic that will flag
@let
declarations that aren't used within the template. The diagnostic can be turned off through theextendedDiagnostics
compiler option.