Skip to content

Can rewriter interface be improved? #162

Open

Description

@pjljvandelaar

What do the Boolean flags include_whitespace and include_comments exactly mean?
E.g., if you replace with include_whitespace does the replacement text then start on the previous line (as a new line character is also a white space)?

Can we get rid of extended_end_offset?

Can we come up with a solution that works for all language - yet still support unique requirements - like correct indentation by Python?
E.g., could we specify better using the concepts of line and indentation?

Activity

  1. pjljvandelaar commented on Sep 30, 2026

    @pjljvandelaar
    CollaboratorAuthor

    Can we use a diff as an parser independent way to communicate the changes that we want?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions