Skip to content

Ivy AST for deferred blocks#51050

Closed
crisbeto wants to merge 2 commits intoangular:mainfrom
crisbeto:deferred-ivy-ast
Closed

Ivy AST for deferred blocks#51050
crisbeto wants to merge 2 commits intoangular:mainfrom
crisbeto:deferred-ivy-ast

Conversation

@crisbeto
Copy link
Copy Markdown
Member

⚠️Disclaimer⚠️ this PR implements syntax that is still in an open RFC. It will be adjusted once the RFC is closed.

Adds the logic to create defer-specific AST nodes from the generic HTML BlockGroup and Block.

Split across a couple of commits to make it easier to review.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer area: compiler Issues related to `ngc`, Angular's template compiler target: minor This PR is targeted for the next minor release labels Jul 15, 2023
@ngbot ngbot bot added this to the Backlog milestone Jul 15, 2023
@crisbeto crisbeto force-pushed the deferred-ivy-ast branch 2 times, most recently from 83a7b78 to 175ecd5 Compare July 15, 2023 09:42
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll likely send a follow-up PR to refactor the triggers into a map since they aren't allowed to repeat, but for now this should be enough to unblock any further work.

@crisbeto crisbeto requested a review from AndrewKushnir July 15, 2023 09:57
@crisbeto crisbeto marked this pull request as ready for review July 15, 2023 09:57
@pullapprove pullapprove bot requested a review from alxhub July 15, 2023 09:57
Copy link
Copy Markdown
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crisbeto looks great 👍

Copy link
Copy Markdown
Member Author

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review @AndrewKushnir, I've addressed all of the feedback.

Copy link
Copy Markdown
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

crisbeto added 2 commits July 17, 2023 23:01
Adds the logic to create `defer`-specific AST nodes from the generic HTML `BlockGroup` and `Block`. The logic for parsing the triggers will be in the next commit.
Adds the logic to parse the `when` and `on` triggers in a deferred block.
Copy link
Copy Markdown
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fantastic! 🍪

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

insert highlander joke here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make another highlander joke, but there can be only one.

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 17, 2023
@crisbeto
Copy link
Copy Markdown
Member Author

Caretaker note: there's a pending language service review, but the changes there are trivial.

@jessicajaniuk
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 76d22ae.

jessicajaniuk pushed a commit that referenced this pull request Jul 17, 2023
Adds the logic to parse the `when` and `on` triggers in a deferred block.

PR Close #51050
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
Adds the logic to create `defer`-specific AST nodes from the generic HTML `BlockGroup` and `Block`. The logic for parsing the triggers will be in the next commit.

PR Close angular#51050
sunilbaba pushed a commit to sunilbaba/angular that referenced this pull request Jul 26, 2023
Adds the logic to parse the `when` and `on` triggers in a deferred block.

PR Close angular#51050
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 17, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
Adds the logic to create `defer`-specific AST nodes from the generic HTML `BlockGroup` and `Block`. The logic for parsing the triggers will be in the next commit.

PR Close angular#51050
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
Adds the logic to parse the `when` and `on` triggers in a deferred block.

PR Close angular#51050
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants