Skip to content

Conversation

@paul-dingemans
Copy link
Collaborator

@paul-dingemans paul-dingemans commented Oct 31, 2022

Description

Add methods "ASTNode.upsertWhitespaceBeforeMe" and "ASTNode.upsertWhitespaceAfterMe" as replacements for "LeafElement.upsertWhitespaceBeforeMe" and "LeafElement.upsertWhitespaceAfterMe". The new methods are more versatile and allow code to be written more readable in most places.

Checklist

  • PR description added
  • tests are added
  • KtLint has been applied on source code itself and violations are fixed
  • documentation is updated
  • CHANGELOG.md is updated

In case of adding a new rule:

Sorry, something went wrong.

…tespaceAfterMe" as replacements for "LeafElement.upsertWhitespaceBeforeMe" and "LeafElement.upsertWhitespaceAfterMe". The new methods are more versatile and allow code to be written more readable in most places.
paul-dingemans added a commit to paul-dingemans/ktlint that referenced this pull request Oct 31, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@paul-dingemans paul-dingemans merged commit 1de6c94 into pinterest:master Nov 2, 2022
@paul-dingemans paul-dingemans deleted the upsert-whitespace branch November 2, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

None yet

1 participant