File tree 1 file changed +2
-3
lines changed
src/dotty/tools/dotc/transform
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class LambdaLift extends MiniPhaseTransform with IdentityDenotTransformer { this
88
88
}
89
89
90
90
def narrowLiftedOwner (sym : Symbol , owner : Symbol )(implicit ctx : Context ) = {
91
- println (i " narrow lifted $sym to $owner" )
91
+ ctx.log (i " narrow lifted $sym to $owner" )
92
92
if (sym.owner.skipConstructor.isTerm &&
93
93
owner.isProperlyContainedIn(liftedOwner(sym))) {
94
94
changedLiftedOwner = true
@@ -128,7 +128,7 @@ class LambdaLift extends MiniPhaseTransform with IdentityDenotTransformer { this
128
128
*/
129
129
private def markFree (sym : Symbol , enclosure : Symbol )(implicit ctx : Context ): Boolean = try {
130
130
if (! enclosure.exists) throw new NoPath
131
- println (i " mark free: ${sym.showLocated} with owner ${sym.maybeOwner} marked free in $enclosure" )
131
+ ctx.log (i " mark free: ${sym.showLocated} with owner ${sym.maybeOwner} marked free in $enclosure" )
132
132
(enclosure == sym.enclosure) || {
133
133
ctx.debuglog(i " $enclosure != ${sym.enclosure}" )
134
134
narrowLiftedOwner(enclosure, sym.enclosingClass)
@@ -202,7 +202,6 @@ class LambdaLift extends MiniPhaseTransform with IdentityDenotTransformer { this
202
202
private def computeFreeVars ()(implicit ctx : Context ): Unit =
203
203
do {
204
204
changedFreeVars = false
205
- // println(s"called = ${called.toList map { case (from, to) => from.showLocated + " -> " + to.toList.map(_.showLocated) }}")
206
205
for {
207
206
caller <- called.keys
208
207
callee <- called(caller)
You can’t perform that action at this time.
0 commit comments