feat(core): Provide a diagnostic for missing Signal invocation in template interpolation.#49660
feat(core): Provide a diagnostic for missing Signal invocation in template interpolation.#49660JeanMeche wants to merge 4 commits intoangular:mainfrom
Conversation
a40e89f to
e88232a
Compare
|
This sounds like a great idea for a template diagnostic! Looking forward to it being ready for review/discussion! |
b9572fd to
9fe1153
Compare
...ges/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_called/index.ts
Outdated
Show resolved
Hide resolved
9fe1153 to
4e19b00
Compare
...es/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.ts
Outdated
Show resolved
Hide resolved
...es/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.ts
Outdated
Show resolved
Hide resolved
4e19b00 to
b0bd5c4
Compare
|
@JeanMeche Since this visits every node in the AST, what about expressions like |
|
@dylhunn This is already covered, I'll add a test though ! |
b0bd5c4 to
6784cd8
Compare
|
@crisbeto Highlighted some potential concerns before we merge this. Let's target v16.1.
|
Just to capture this here: And in those cases, the normal type-checking is already sufficient and will complain if e.g. |
… in template interpolation.
792cccc to
3286016
Compare
|
@pkozlowski-opensource @JeanMeche Just to confirm, the regular non-interpolated binding case Edit: saw the slack thread, thanks! |
No, it won't produce a diagnostic. The typechecker should do that. |
dylhunn
left a comment
There was a problem hiding this comment.
For pullapprove:
reviewed-for: fw-compiler, public-api
|
Caretaker: windows is a flake. PR has sufficient approvals (me and Pawel). |
|
This PR was merged into the repository by commit 8eef694. |
|
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. |
…plate interpolation. (angular#49660) To improve DX for beginners, this commit adds an extended diagnostic for Signals in template interpolations. PR Close angular#49660
To improve DX for beginners, this commit ads an extended diagnostic for Signals in template interpolations.
See #49657
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?