Skip to content

Commit e916a67

Browse files
committed
Un-split phase group that I previously split
1 parent 878881a commit e916a67

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ class Compiler {
6868
new ExplicitSelf, // Make references to non-trivial self types explicit as casts
6969
new ShortcutImplicits, // Allow implicit functions without creating closures
7070
new CrossCastAnd, // Normalize selections involving intersection types.
71-
new Splitter), // Expand selections involving union types into conditionals
71+
new Splitter, // Expand selections involving union types into conditionals
72+
new ElimByName), // Expand by-name parameter references
7273
List(new PhantomArgLift, // Extracts the evaluation of phantom arguments placing them before the call.
7374
new VCInlineMethods, // Inlines calls to value class methods
7475
new SeqLiterals, // Express vararg arguments as arrays
7576
new InterceptedMethods, // Special handling of `==`, `|=`, `getClass` methods
7677
new Getters, // Replace non-private vals and vars with getter defs (fields are added later)
77-
new ElimByName), // Expand by-name parameter references
78-
List(new SpecializeFunctions, // Specialized Function{0,1,2} by replacing super with specialized super
78+
new SpecializeFunctions, // Specialized Function{0,1,2} by replacing super with specialized super
7979
new ElimOuterSelect, // Expand outer selections
8080
new AugmentScala2Traits, // Expand traits defined in Scala 2.x to simulate old-style rewritings
8181
new ResolveSuper, // Implement super accessors and add forwarders to trait methods

compiler/src/dotty/tools/dotc/transform/ElimByName.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ class ElimByName extends TransformByNameApply with InfoTransformer {
4242

4343
override def phaseName: String = "elimByName"
4444

45-
override def runsAfterGroupsOf = Set(classOf[Splitter])
46-
// I got errors running this phase in an earlier group, but I did not track them down.
47-
4845
/** Map `tree` to `tree.apply()` is `ftree` was of ExprType and becomes now a function */
4946
private def applyIfFunction(tree: Tree, ftree: Tree)(implicit ctx: Context) =
5047
if (isByNameRef(ftree))

0 commit comments

Comments
 (0)