Skip to content

Commit

Permalink
[fix] MiMA fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Sep 12, 2023
1 parent b347a0d commit 47c3f7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parsley/shared/src/main/scala/parsley/position.scala
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ object position {
*/
val offset: Parsley[Int] = internalOffset

//TODO: document and test
private [parsley] def withSpan[A, S](end: Parsley[S])(p: Parsley[A]): Parsley[(S, A, S)] = (end, p, end).zipped

//TODO: test and document
def withWidth[A](p: Parsley[A]): Parsley[(A, Int)] = (offset, p, offset).zipped((s, x, e) => (x, e-s))
}
2 changes: 2 additions & 0 deletions project/mima.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ object mima {
ProblemFilters.exclude[DirectMissingMethodProblem]("parsley.token.errors.*.label"),
ProblemFilters.exclude[IncompatibleMethTypeProblem]("parsley.token.errors.*.this"),
ProblemFilters.exclude[IncompatibleMethTypeProblem]("parsley.errors.helpers#WhitespaceOrUnprintable.unapply"),
ProblemFilters.exclude[DirectMissingMethodProblem]("parsley.position.internalOffsetSpan"),
ProblemFilters.exclude[DirectMissingMethodProblem]("parsley.position.spanWith"),
// Expression refactor
ProblemFilters.exclude[ReversedMissingMethodProblem]("parsley.expr.Fixity.chain"),
ProblemFilters.exclude[ReversedMissingMethodProblem]("parsley.expr.Ops.chain"),
Expand Down

0 comments on commit 47c3f7d

Please sign in to comment.