-
Notifications
You must be signed in to change notification settings - Fork 26.4k
feat(compiler-cli): add diagnostic for uninvoked functions in text interpolation #59191
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
base: main
Are you sure you want to change the base?
feat(compiler-cli): add diagnostic for uninvoked functions in text interpolation #59191
Conversation
...ks/uninvoked_function_in_text_interpolation/uninvoked_function_in_text_interpolation_spec.ts
Show resolved
Hide resolved
Could you also make sure to check the linter failures, thank you. |
Deployed adev-preview for b3607ab to: https://ng-dev-previews-fw--pr-angular-angular-59191-adev-prev-ehyguwsu.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
Also, we need to add the entry to |
@JeanMeche I think I've addressed all the comments! |
...ks/uninvoked_function_in_text_interpolation/uninvoked_function_in_text_interpolation_spec.ts
Show resolved
Hide resolved
Whenever you have time, please look at the new changes @JeanMeche! |
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.
I suspect these points may have originated in the signal check, but mentioning them here anyway.
...er-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_text_interpolation/index.ts
Show resolved
Hide resolved
...er-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_text_interpolation/index.ts
Outdated
Show resolved
Hide resolved
...er-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_text_interpolation/index.ts
Outdated
Show resolved
Hide resolved
@JeanMeche @JoostK Changes have been applied and are ready to be blasted with another review! |
@alxhub @JeanMeche @JoostK Do you think this is ready for a review? |
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.
This looks correct for me
...ks/uninvoked_function_in_text_interpolation/uninvoked_function_in_text_interpolation_spec.ts
Outdated
Show resolved
Hide resolved
Case you rebase your PR and take the previous comments into account ? Thank you. |
8230854
to
192b848
Compare
b648bc4
to
04791c9
Compare
No signs from OP on github over the past few months, I've picked over the PR to move it foward. |
fec1662
to
e39f805
Compare
Please do it @JeanMeche , I don't have much time now. Thanks :) |
e0ca7b4
to
2b289eb
Compare
2b289eb
to
2bb8efe
Compare
2bb8efe
to
5a8fae9
Compare
…terpolation This commit adds a new extended diagnostic to detect uninvoked functions in text interpolation.
5a8fae9
to
b3607ab
Compare
The last fix CL from the previous TGP was submitted. This should be good to go. |
TESTED=TGP |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
We don't perform this check whenever we have an uninvoked function in a text interpolation.
Issue Number: #59157
What is the new behavior?
Whenever we have an uninvoked function in a text interpolation, a warning is triggered (NG8114).
Does this PR introduce a breaking change?