Skip to content

Instantly share code, notes, and snippets.

@fwbrasil
Created August 12, 2017 08:26
Show Gist options
  • Save fwbrasil/fe4e459ce05c78d0fe9646a282c0f2dc to your computer and use it in GitHub Desktop.
Save fwbrasil/fe4e459ce05c78d0fe9646a282c0f2dc to your computer and use it in GitHub Desktop.
package fix
import scalafix._
import scala.meta._
case class ReplaceSymbols(sctx: SemanticCtx) extends SemanticRewrite(sctx) {
def rewrite(ctx: RewriteCtx): Patch =
ctx.replaceSymbols(
"scala.concurrent.Await" -> "io.trane.future.scala.Await",
"scala.concurrent.Future" -> "io.trane.future.scala.Future",
"scala.concurrent.Promise" -> "io.trane.future.scala.Promise")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment