File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class Compiler {
94
94
new FunctionalInterfaces , // Rewrites closures to implement @specialized types of Functions.
95
95
new GetClass , // Rewrites getClass calls on primitive types.
96
96
new Simplify ), // Perform local optimizations, simplified versions of what linker does.
97
- List (new LinkScala2ImplClasses , // Forward calls to the implementation classes of traits defined by Scala 2.11
97
+ List (new LinkScala2Impls , // Redirect calls to trait methods defined by Scala 2.x, so that they now go to their implementations
98
98
new LambdaLift , // Lifts out nested functions to class scope, storing free variables in environments
99
99
// Note: in this mini-phase block scopes are incorrect. No phases that rely on scopes should be here
100
100
new ElimStaticThis , // Replace `this` references to static objects by global identifiers
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import collection.mutable
34
34
*
35
35
* where f is a static member of M.
36
36
*/
37
- class LinkScala2ImplClasses extends MiniPhase with IdentityDenotTransformer { thisTransform =>
37
+ class LinkScala2Impls extends MiniPhase with IdentityDenotTransformer { thisTransform =>
38
38
import ast .tpd ._
39
39
40
40
override def phaseName : String = " linkScala2ImplClasses"
@@ -46,7 +46,7 @@ class LinkScala2ImplClasses extends MiniPhase with IdentityDenotTransformer { th
46
46
// that's why it is runsAfterGroupOf
47
47
48
48
class Transform extends TreeTransform {
49
- def phase = thisTransform
49
+ def phase = LinkScala2Impls
50
50
51
51
/** Copy definitions from implementation class to trait itself */
52
52
private def augmentScala_2_12_Trait (mixin : ClassSymbol )(implicit ctx : Context ): Unit = {
@@ -55,7 +55,7 @@ class LinkScala2ImplClasses extends MiniPhase with IdentityDenotTransformer { th
55
55
name = if (sym.isConstructor) sym.name else ImplMethName (sym.name)
56
56
)
57
57
for (sym <- mixin.implClass.info.decls)
58
- newImpl(sym.asTerm).enteredAfter(thisTransform )
58
+ newImpl(sym.asTerm).enteredAfter(LinkScala2Impls )
59
59
}
60
60
61
61
override def prepareForTemplate (impl : Template )(implicit ctx : Context ) = {
You can’t perform that action at this time.
0 commit comments