Skip to content

Commit

Permalink
FormatTokensRewrite: add ReplacementType.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Oct 15, 2024
1 parent 267ddbc commit 7174d2a
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,15 @@ object FormatTokensRewrite {

private[rewrite] sealed trait ReplacementType
private[rewrite] object ReplacementType {
object Remove extends ReplacementType
object Replace extends ReplacementType
class RemoveAndResurrect(val ft: FormatToken) extends ReplacementType
object Remove extends ReplacementType {
override def toString: String = "REMOVE"
}
object Replace extends ReplacementType {
override def toString: String = "REPLACE"
}
class RemoveAndResurrect(val ft: FormatToken) extends ReplacementType {
override def toString: String = s"REMOVE/RESURRECT(${ft.right.structure})"
}
}

private def mergeWhitespaceLeftToRight(
Expand Down

0 comments on commit 7174d2a

Please sign in to comment.