File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class TreeChecker {
39
39
println(s " checking ${ctx.compilationUnit} after phase ${ctx.phase.prev}" )
40
40
val checkingCtx = ctx.fresh
41
41
.setTyperState(ctx.typerState.withReporter(new ThrowingReporter (ctx.typerState.reporter)))
42
- val checker = new Checker (phasesToRun.takeWhile(_ ne ctx.phase) :+ ctx.phase )
42
+ val checker = new Checker (phasesToRun.takeWhile(_ ne ctx.phase))
43
43
checker.typedExpr(ctx.compilationUnit.tpdTree)(checkingCtx)
44
44
}
45
45
@@ -107,9 +107,9 @@ class TreeChecker {
107
107
* is that we should be able to pull out an expression as an initializer
108
108
* of a helper value without having to do a change owner traversal of the expression.
109
109
*/
110
- override def index (trees : List [untpd.Tree ])(implicit ctx : Context ): Context = {
110
+ override def typedStats (trees : List [untpd.Tree ], exprOwner : Symbol )(implicit ctx : Context ): List [ Tree ] = {
111
111
for (tree <- trees if tree.isDef) checkOwner(tree)
112
- super .index (trees)
112
+ super .typedStats (trees, exprOwner )
113
113
}
114
114
115
115
override def adapt (tree : Tree , pt : Type , original : untpd.Tree = untpd.EmptyTree )(implicit ctx : Context ) = {
You can’t perform that action at this time.
0 commit comments