Skip to content

refactor(compiler): Add getPotentialTemplateDirectives API method. - #47561

Closed
dylhunn wants to merge 3 commits into
angular:mainfrom
dylhunn:new-compiler-apis
Closed

dylhunn wants to merge 3 commits into
angular:mainfrom
dylhunn:new-compiler-apis

Conversation

@dylhunn

@dylhunn dylhunn commented Sep 27, 2022 •

Copy link
Copy Markdown
Contributor

getPotentialTemplateDirectives returns possible directives which can be used in the provided context, whether already in scope or requiring an import.

This is necessary to implement auto-import support for standalone components in the language service.

This is fourth in an ongoing sequence of PRs, including #47181, #47180, and #47166.

@dylhunn dylhunn added state: WIP area: compiler Issues related to `ngc`, Angular's template compiler target: minor This PR is targeted for the next minor release labels Sep 27, 2022
@ngbot ngbot Bot modified the milestone: Backlog Sep 27, 2022
@dylhunn
dylhunn force-pushed the new-compiler-apis branch 6 times, most recently from 1ee7cef to 9d172b8 Compare September 28, 2022 19:06
@dylhunn dylhunn changed the title refactor(compiler): Add getPotentialTemplateDirectives and getPotentialImportsFor API methods. refactor(compiler): Add getPotentialTemplateDirectives API method. Sep 28, 2022
@dylhunn
dylhunn force-pushed the new-compiler-apis branch 3 times, most recently from 5984ce5 to b121aa4 Compare September 28, 2022 19:12
@dylhunn
dylhunn marked this pull request as ready for review September 28, 2022 19:15
@pullapprove
pullapprove Bot requested a review from alxhub September 28, 2022 19:16
@dylhunn dylhunn added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 28, 2022
@dylhunn
dylhunn force-pushed the new-compiler-apis branch 2 times, most recently from 6d19174 to 0f28148 Compare October 4, 2022 20:09
@dylhunn
dylhunn force-pushed the new-compiler-apis branch 2 times, most recently from a2a9cbb to ff1273a Compare October 4, 2022 20:20
After implementing `getPotentialTemplateDirectives`, we will use this data struture to represent both in-scope and out-of-scope directives. So this rename is an advance cleanup.
`getPotentialTemplateDirectives` returns possible directives which can be used in the provided context, whether already in scope or requiring an import.

This is necessary to implement auto-import support for standalone components in the language service.
Now that `getPotentialTemplateDirectives` uses `PotentialDirective`, we should rename `PipeInScope` to match.
@dylhunn
dylhunn force-pushed the new-compiler-apis branch from ff1273a to 0362aad Compare October 4, 2022 20:43
@dylhunn dylhunn 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 Oct 4, 2022
@AndrewKushnir

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 2919463.

AndrewKushnir pushed a commit that referenced this pull request Oct 4, 2022
…47561)

`getPotentialTemplateDirectives` returns possible directives which can be used in the provided context, whether already in scope or requiring an import.

This is necessary to implement auto-import support for standalone components in the language service.

PR Close #47561
AndrewKushnir pushed a commit that referenced this pull request Oct 4, 2022
Now that `getPotentialTemplateDirectives` uses `PotentialDirective`, we should rename `PipeInScope` to match.

PR Close #47561
@dylhunn
dylhunn deleted the new-compiler-apis branch October 11, 2022 15:05
@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 Nov 11, 2022
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 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