Skip to content

refactor(language-service): Create helper methods for manipulating object and array ASTs.#47181

Closed
dylhunn wants to merge 1 commit intoangular:mainfrom
dylhunn:ls-ast-helpers
Closed

refactor(language-service): Create helper methods for manipulating object and array ASTs.#47181
dylhunn wants to merge 1 commit intoangular:mainfrom
dylhunn:ls-ast-helpers

Conversation

@dylhunn
Copy link
Contributor

@dylhunn dylhunn commented Aug 18, 2022

Create three new helper methods: addElementToArrayLiteral, objectPropertyAssignmentForKey, and updateObjectValueForKey. These methods make interacting with array and object literals easier.

These will be useful for the standalone imports feature, which will need to add new terms to import arrays in Component and NgModule decorators.

@dylhunn dylhunn added area: language-service Issues related to Angular's VS Code language service target: patch This PR is targeted for the next patch release labels Aug 18, 2022
@ngbot ngbot bot modified the milestone: Backlog Aug 18, 2022
@pullapprove pullapprove bot requested a review from alxhub August 18, 2022 02:27
@dylhunn dylhunn added the action: review The PR is still awaiting reviews from at least one requested reviewer label Aug 18, 2022
@dylhunn dylhunn requested a review from atscott August 18, 2022 16:30
@dylhunn
Copy link
Contributor Author

dylhunn commented Aug 18, 2022

Andrew -- no pressure to review this, since I know you've got other stuff going on. Just adding you for visibility, in case you have opinions about these changes.

@pullapprove pullapprove bot removed the request for review from atscott August 18, 2022 16:38
Copy link
Member

@alxhub alxhub left a comment

Choose a reason for hiding this comment

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

Important: this should be a refactor commit as it does not publicly expose a new feature.

@dylhunn dylhunn changed the title feat(language-service): Create helper methods for manipulating object and array ASTs. refactor(language-service): Create helper methods for manipulating object and array ASTs. Aug 18, 2022
…ject and array ASTs.

Create three new helper methods: `addElementToArrayLiteral`, `objectPropertyAssignmentForKey`, and `updateObjectValueForKey`. These methods make interacting with array and object literals easier.

These will be useful for the standalone imports feature, which will need to add new terms to import arrays in Component and NgModule decorators.
@dylhunn dylhunn 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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Aug 18, 2022
@alxhub
Copy link
Member

alxhub commented Aug 22, 2022

This PR was merged into the repository by commit daac137.

@alxhub alxhub closed this in daac137 Aug 22, 2022
alxhub pushed a commit that referenced this pull request Aug 22, 2022
…ject and array ASTs. (#47181)

Create three new helper methods: `addElementToArrayLiteral`, `objectPropertyAssignmentForKey`, and `updateObjectValueForKey`. These methods make interacting with array and object literals easier.

These will be useful for the standalone imports feature, which will need to add new terms to import arrays in Component and NgModule decorators.

PR Close #47181
alxhub pushed a commit that referenced this pull request Aug 22, 2022
…ject and array ASTs. (#47181)

Create three new helper methods: `addElementToArrayLiteral`, `objectPropertyAssignmentForKey`, and `updateObjectValueForKey`. These methods make interacting with array and object literals easier.

These will be useful for the standalone imports feature, which will need to add new terms to import arrays in Component and NgModule decorators.

PR Close #47181
@angular-automatic-lock-bot
Copy link

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 Sep 22, 2022
@dylhunn dylhunn deleted the ls-ast-helpers branch October 17, 2022 13:38
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: language-service Issues related to Angular's VS Code language service 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