Skip to content

Commit aa10ba7

Browse files
committed
Shallower traversal in SetRootTree
We only need to traverse the tree down to the top level classes, but no further.
1 parent 45e4758 commit aa10ba7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ class SetRootTree extends Phase {
3232
sym.rootTreeOrProvider = td
3333
}
3434
}
35-
traverseChildren(td)
36-
case tpl: tpd.Template =>
37-
traverseChildren(tpl)
3835
case _ =>
3936
()
4037
}

0 commit comments

Comments
 (0)