Skip to content

Commit 54f50e5

Browse files
committed
Renamed ElimRedundantContextualClosure to ElimContextClosures per feedback on #13750
1 parent a54bfd4 commit 54f50e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Compiler {
7373
new ProtectedAccessors, // Add accessors for protected members
7474
new ExtensionMethods, // Expand methods of value classes with extension methods
7575
new UncacheGivenAliases, // Avoid caching RHS of simple parameterless given aliases
76-
new ElimRedundantContextualClosure, // Unwrap context closures that contain only a context function of compatible type
76+
new ElimContextClosures, // Unwrap context closures that contain only a context function of compatible type
7777
new ByNameClosures, // Expand arguments to by-name parameters to closures
7878
new HoistSuperArgs, // Hoist complex arguments of supercalls to enclosing scope
7979
new SpecializeApplyMethods, // Adds specialized methods to FunctionN

compiler/src/dotty/tools/dotc/transform/ElimRedundantContextualClosure.scala renamed to compiler/src/dotty/tools/dotc/transform/ElimContextClosures.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ import reporting.trace
3838
* For additional reading material, please refer to the Simplicitly paper and/or
3939
* the discussion at https://github.com/lampepfl/dotty/issues/10889
4040
*/
41-
class ElimRedundantContextualClosure extends MiniPhase with IdentityDenotTransformer { thisPhase: DenotTransformer =>
41+
class ElimContextClosures extends MiniPhase with IdentityDenotTransformer { thisPhase: DenotTransformer =>
4242
import ast.tpd._
4343
import ast.untpd
4444

45-
override def phaseName:String = ElimRedundantContextualClosure.name
45+
override def phaseName:String = ElimContextClosures.name
4646

4747
/** The info of the tree's symbol before it is potentially transformed in this phase */
4848
private def originalDenotation(tree: Tree)(using Context) =
@@ -76,6 +76,6 @@ class ElimRedundantContextualClosure extends MiniPhase with IdentityDenotTransfo
7676
}
7777
}
7878

79-
object ElimRedundantContextualClosure {
80-
val name: String = "elimRedundantContextualClosure"
79+
object ElimContextClosures {
80+
val name: String = "elimContextClosures"
8181
}

0 commit comments

Comments
 (0)