Skip to content

Commit 6bfaf77

Browse files
committed
Renaming
1 parent 64069a7 commit 6bfaf77

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Compiler {
8181
new StringInterpolatorOpt, // Optimizes raw and s string interpolators by rewriting them to string concatentations
8282
new CrossCastAnd, // Normalize selections involving intersection types.
8383
new Splitter) :: // Expand selections involving union types into conditionals
84-
List(new CutErasedDecls, // Drop erased definitions from scopes and simplify erased expressions
84+
List(new PruneErasedDefs, // Drop erased definitions from scopes and simplify erased expressions
8585
new VCInlineMethods, // Inlines calls to value class methods
8686
new SeqLiterals, // Express vararg arguments as arrays
8787
new InterceptedMethods, // Special handling of `==`, `|=`, `getClass` methods

compiler/src/dotty/tools/dotc/transform/PruneErasedDecls.scala renamed to compiler/src/dotty/tools/dotc/transform/PruneErasedDefs.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import ast.tpd
1919
* default values. This is necessary so that subsequent checking phases such
2020
* as IsInstanceOfChecker don't give false negatives.
2121
*/
22-
class CutErasedDecls extends MiniPhase with SymTransformer { thisTransform =>
22+
class PruneErasedDefs extends MiniPhase with SymTransformer { thisTransform =>
2323
import tpd._
2424

25-
override def phaseName = CutErasedDecls.name
25+
override def phaseName = PruneErasedDefs.name
2626

2727
override def changesMembers = true // makes erased members private
2828

@@ -50,6 +50,6 @@ class CutErasedDecls extends MiniPhase with SymTransformer { thisTransform =>
5050
cpy.DefDef(tree)(rhs = ref(defn.Predef_undefined))
5151
else tree
5252
}
53-
object CutErasedDecls {
54-
val name = "cutErasedDecls"
53+
object PruneErasedDefs {
54+
val name = "pruneErasedDefs"
5555
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ResolveSuper extends MiniPhase with IdentityDenotTransformer { thisPhase =
5252

5353
override def runsAfter = Set(ElimByName.name, // verified empirically, need to figure out what the reason is.
5454
AugmentScala2Traits.name,
55-
CutErasedDecls.name) // Erased decls make `isCurrent` work incorrectly
55+
PruneErasedDefs.name) // Erased decls make `isCurrent` work incorrectly
5656

5757
override def changesMembers = true // the phase adds super accessors and method forwarders
5858

0 commit comments

Comments
 (0)