Skip to content

Conversation

@crisbeto
Copy link
Member

Back in #39323, I added a new ThisReceiver node to represent accesses done through this and I ended up making it inherit from ImplicitReceiver. The logic was that in most cases accessing through this was the same as the implicit access.

Over the years this has proven to not be a great idea, because no other AST nodes do this and one has to keep it in mind whenever dealing with ImplicitReceiver.

These changes remove the inheritance and update all of the usage sites accordingly.

@crisbeto crisbeto added target: patch This PR is targeted for the next patch release action: global presubmit The PR is in need of a google3 global presubmit labels Dec 22, 2025
@angular-robot angular-robot bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Dec 22, 2025
@ngbot ngbot bot added this to the Backlog milestone Dec 22, 2025
@crisbeto
Copy link
Member Author

Passing TGP

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: global presubmit The PR is in need of a google3 global presubmit labels Dec 22, 2025
@crisbeto crisbeto marked this pull request as ready for review December 22, 2025 12:45
Back in angular#39323, I added a new `ThisReceiver` node to represent accesses done through `this` and I ended up making it inherit from `ImplicitReceiver`. The logic was that in most cases accessing through `this` was the same as the implicit access.

Over the years this has proven to not be a great idea, because no other AST nodes do this and one has to keep it in mind whenever dealing with `ImplicitReceiver`.

These changes remove the inheritance and update all of the usage sites accordingly.
@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 Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

2 participants