Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add methods "ASTNode.upsertWhitespace*Me" #1687

Merged
merged 3 commits into from
Nov 2, 2022

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:

…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
@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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant