File tree 1 file changed +2
-6
lines changed
compiler/src/dotty/tools/repl/transform 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import dotty.tools.dotc.ast.untpd
5
5
import dotty .tools .dotc .core .Contexts ._
6
6
import dotty .tools .dotc .core .Names .Name
7
7
import dotty .tools .dotc .core .Phases .Phase
8
- import dotty .tools .dotc .core .StdNames .ScalaTermNames
8
+ import dotty .tools .dotc .core .StdNames .nme
9
9
10
10
11
11
/** This phase collects and transforms top-level Import trees to handle definition shadowing.
@@ -61,7 +61,7 @@ class CollectTopLevelImports extends Phase {
61
61
62
62
val shadowedMembers = importedNames.intersect(definitionsAfterImport)
63
63
val adjustedSelectors = shadowedMembers.map(collidingMember => {
64
- untpd.ImportSelector (untpd.Ident (collidingMember), untpd.Ident (CollectTopLevelImports . nme.WILDCARD ))
64
+ untpd.ImportSelector (untpd.Ident (collidingMember), untpd.Ident (nme.WILDCARD ))
65
65
})
66
66
67
67
val remainingSelectors = selectors.filterNot(importSelector => {
@@ -83,7 +83,3 @@ class CollectTopLevelImports extends Phase {
83
83
84
84
}
85
85
86
- object CollectTopLevelImports {
87
- private lazy val nme : ScalaTermNames = new ScalaTermNames
88
- }
89
-
You can’t perform that action at this time.
0 commit comments