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

feat(rome_formatter): Custom separator per Fill item #3125

Merged
merged 2 commits into from
Aug 29, 2022

Conversation

MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented Aug 29, 2022

This PR refactors Fill to support different separators for every item rather than one uniform separator that separates all elements in the list.

This is necessary to implement fill for array expressions where the separator should be a:

  • soft line break or space: if there are 0 - 1 line breaks before the node
  • empty line: if there are more than 1 new lines before the node.

Used in #3126

This PR refactors `Fill` to support different separator for every item rather than one uniform separator that separates all elements in the list.

This is necessary to implement `fill` for array expressions where the separator should be a:

* soft line break or space: if there are 0 - 1 line breaks before the node
* empty line: if there are more than 1 new lines before the node.
@MichaReiser MichaReiser temporarily deployed to aws August 29, 2022 10:04 Inactive
@github-actions
Copy link

github-actions bot commented Aug 29, 2022

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 29, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: fcbddb2
Status: ✅  Deploy successful!
Preview URL: https://6e60bbfa.tools-8rn.pages.dev
Branch Preview URL: https://refactor-flat-ir.tools-8rn.pages.dev

View logs

@MichaReiser MichaReiser temporarily deployed to aws August 29, 2022 10:45 Inactive
@MichaReiser MichaReiser merged commit ea6bf5b into main Aug 29, 2022
@MichaReiser MichaReiser deleted the refactor/flat-ir branch August 29, 2022 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants