File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
rewrites/src/main/scala/fix Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.5-SNAPSHOT " )
1
+ addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.5.0-M4 " )
2
2
addSbtPlugin(" io.get-coursier" % " sbt-coursier" % " 1.0.0-RC9" )
3
3
addSbtPlugin(" com.eed3si9n" % " sbt-buildinfo" % " 0.6.1" )
4
4
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import scalafix._
4
4
import scalafix .syntax ._
5
5
import scala .meta ._
6
6
7
- case class Collectionstrawman_v0 (mirror : SemanticCtx )
8
- extends SemanticRewrite (mirror ) {
7
+ case class Collectionstrawman_v0 (sctx : SemanticCtx )
8
+ extends SemanticRewrite (sctx ) {
9
9
val immutableListSymbol = Symbol (" _root_.scala.collection.immutable.List." )
10
10
val unimports = Map (
11
11
Symbol (" _root_.scala.Predef.augmentString." ) ->
@@ -15,7 +15,7 @@ case class Collectionstrawman_v0(mirror: SemanticCtx)
15
15
)
16
16
17
17
def ifSymbolFound (ctx : RewriteCtx ): Patch = {
18
- val toImport = ctx.mirror .names
18
+ val toImport = ctx.semanticCtx .names
19
19
.flatMap(r => unimports.get(r.sym.normalized))
20
20
.map(ctx.addGlobalImport)
21
21
toImport.asPatch
You can’t perform that action at this time.
0 commit comments