File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class Compiler {
73
73
new ProtectedAccessors , // Add accessors for protected members
74
74
new ExtensionMethods , // Expand methods of value classes with extension methods
75
75
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
77
77
new ByNameClosures , // Expand arguments to by-name parameters to closures
78
78
new HoistSuperArgs , // Hoist complex arguments of supercalls to enclosing scope
79
79
new SpecializeApplyMethods , // Adds specialized methods to FunctionN
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ import reporting.trace
38
38
* For additional reading material, please refer to the Simplicitly paper and/or
39
39
* the discussion at https://github.com/lampepfl/dotty/issues/10889
40
40
*/
41
- class ElimRedundantContextualClosure extends MiniPhase with IdentityDenotTransformer { thisPhase : DenotTransformer =>
41
+ class ElimContextClosures extends MiniPhase with IdentityDenotTransformer { thisPhase : DenotTransformer =>
42
42
import ast .tpd ._
43
43
import ast .untpd
44
44
45
- override def phaseName : String = ElimRedundantContextualClosure .name
45
+ override def phaseName : String = ElimContextClosures .name
46
46
47
47
/** The info of the tree's symbol before it is potentially transformed in this phase */
48
48
private def originalDenotation (tree : Tree )(using Context ) =
@@ -76,6 +76,6 @@ class ElimRedundantContextualClosure extends MiniPhase with IdentityDenotTransfo
76
76
}
77
77
}
78
78
79
- object ElimRedundantContextualClosure {
80
- val name : String = " elimRedundantContextualClosure "
79
+ object ElimContextClosures {
80
+ val name : String = " elimContextClosures "
81
81
}
You can’t perform that action at this time.
0 commit comments