Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

refactor(rome_formatter): Part 3: Delete FormatElement::Comment #3240

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented Sep 16, 2022

Summary

This PR is part of the comments refactoring #3227.

This PR removes the FormatElement::Comment element. It was used to this point because the group builder had to move comments outside of the start/end of the group.

No such inspection is necessary after the refactor which is why the element can be deleted.

@MichaReiser MichaReiser added this to the 0.10.0 milestone Sep 16, 2022
@MichaReiser MichaReiser added the A-Formatter Area: formatter label Sep 16, 2022
@MichaReiser MichaReiser changed the title refactor(rome_formatter): Delete FormatElement::Comment refactor(rome_formatter): Part 3: Delete FormatElement::Comment Sep 16, 2022
@MichaReiser MichaReiser requested a review from leops September 16, 2022 12:48
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Deleted code is the best code! 😆

@MichaReiser MichaReiser requested a review from a team September 16, 2022 14:58
This PR removes the `FormatElement::Comment` element. It was used to this point because the `group` builder had to move `comments` outside of the start/end of the group.

No such inspection is necessary after the refactor which is why the element can be deleted.
@MichaReiser MichaReiser force-pushed the refactor/comment-format-element branch from 7bcef41 to 7cbec6f Compare September 16, 2022 15:24
Base automatically changed from feat/comments-api to refactor/comments September 19, 2022 14:50
@MichaReiser MichaReiser merged commit eab7a93 into refactor/comments Sep 19, 2022
@MichaReiser MichaReiser deleted the refactor/comment-format-element branch September 19, 2022 14:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants