Skip to content

Commit

Permalink
handle breaking change in transitive dep scalameta 4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bjaglin committed Mar 12, 2022
1 parent aa55f6b commit 1d7f2a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.34")
resolvers += Resolver.sonatypeRepo("snapshots")
dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.9.34+52-a83785c4-SNAPSHOT"

addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ class ExpandPolymorphicLambdas extends SyntacticRule("ExpandPolymorphicLambdas")
case List(Term.Function(List(Term.Param(Nil, name, None, None)), body)) => Some((Some(name), body.toString))
case List(Term.Block(List(Term.Function(List(Term.Param(Nil, name, None, None)), body)))) =>
Some((Some(name), s"{\n $body\n }"))
case List(Term.Apply(method, List(Term.Placeholder()))) => Some((None, s"$method($termParam)"))
case List(other) =>
case List(Term.AnonymousFunction(Term.Apply(method, List(Term.Placeholder())))) =>
Some((None, s"$method($termParam)"))
case List(Term.AnonymousFunction(other)) =>
replacePlaceholder(other, termParam).map(term => (None, term.toString))
case other => None
}
Expand Down

0 comments on commit 1d7f2a8

Please sign in to comment.