Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

handle breaking change in transitive dep scalameta 4.5.0 #194

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ target/
tmp/
docs/src/main/tut/contributing.md
/.bsp/
.bloop
.metals
metals.sbt
.vscode
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"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


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