File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
rewrites/src/main/scala/fix Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,16 @@ lazy val input = project.settings(
17
17
scalafixSourceroot := sourceDirectory.in(Compile ).value
18
18
)
19
19
20
- // val collections = ProjectRef(file(".."), "collections")
21
- //
20
+ val collections = ProjectRef (file(" .." ), " collections" )
21
+
22
22
lazy val output = project
23
23
.settings(
24
- // resolvers := resolvers.in(collections).value,
25
- // libraryDependencies := libraryDependencies.in(collections).value,
26
- // scalaVersion := scalaVersion.in(collections).value,
27
- // scalaBinaryVersion := scalaBinaryVersion.in(collections).value
24
+ resolvers := resolvers.in(collections).value,
25
+ libraryDependencies := libraryDependencies.in(collections).value,
26
+ scalaVersion := scalaVersion.in(collections).value,
27
+ scalaBinaryVersion := scalaBinaryVersion.in(collections).value
28
28
)
29
- // .dependsOn(collections) // collections/publishLocal is still necessary.
29
+ .dependsOn(collections) // collections/publishLocal is still necessary.
30
30
31
31
lazy val tests = project
32
32
.settings(
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ object Collectionstrawman_v0_Range {
53
53
}
54
54
55
55
object Collectionstrawman_v0_Traversable {
56
+ val x : Iterable [String ] = ???
56
57
def foo (xs : Traversable [(Int , String )], ys : List [Int ]): Unit = {
57
58
xs.toList
58
59
xs.toSet
@@ -63,4 +64,4 @@ object Collectionstrawman_v0_Traversable {
63
64
xs.toIterator
64
65
ys.iterator
65
66
}
66
- }
67
+ }
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ case class Collectionstrawman_v0(sctx: SemanticCtx)
40
40
}.asPatch
41
41
42
42
def rewrite (ctx : RewriteCtx ): Patch = {
43
+ ctx.debugSemanticCtx()
43
44
def p (name : String ) =
44
45
s " scala.Predef. $name" -> s " strawman.collection.immutable. $name"
45
46
def s (name : String , rename : Option [String ] = None ) =
@@ -50,6 +51,7 @@ case class Collectionstrawman_v0(sctx: SemanticCtx)
50
51
def m (name : String ) =
51
52
s " scala.collection.mutable. $name" -> s " strawman.collection.mutable. $name"
52
53
ctx.replaceSymbols(
54
+ s(" Set" ),
53
55
i(" HashMap" ),
54
56
i(" Map" ),
55
57
p(" Map" ),
@@ -65,6 +67,8 @@ case class Collectionstrawman_v0(sctx: SemanticCtx)
65
67
i(" `:+`" ),
66
68
i(" Stream" , Some (" LazyList" )),
67
69
s(" Stream" , Some (" LazyList" )),
70
+ s(" Traversable" , Some (" Iterable" )),
71
+ " scala.Iterable" -> " strawman.collection.Iterable" ,
68
72
s(" `#::`" ),
69
73
s(" Vector" ),
70
74
i(" Vector" ),
You can’t perform that action at this time.
0 commit comments