File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
rewrites/src/main/scala/fix Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,9 @@ case class Collectionstrawman_v0(mirror: SemanticCtx) extends SemanticRewrite(mi
20
20
Symbol (" _root_.scala.Predef.intArrayOps." )
21
21
)
22
22
23
- def normalize (symbol : Symbol ): Symbol = {
24
- def loop (symbol : Symbol ): Symbol = symbol match {
25
- case Symbol .Global (qual, Signature .Term (" package" )) => loop(qual)
26
- case Symbol .Global (qual, name) => Symbol .Global (loop(qual), name)
27
- case x => x
28
- }
29
- loop(symbol.normalized)
30
- }
31
-
32
23
def ifSymbolFound (ctx : RewriteCtx ): Patch = {
33
24
val toUnimport = ctx.mirror.database.names.flatMap { r =>
34
- val norm = normalize( r.sym)
25
+ val norm = r.sym.normalized
35
26
if (unimports.contains(norm)) norm :: Nil
36
27
else Nil
37
28
}
You can’t perform that action at this time.
0 commit comments