Skip to content

Commit fa2af08

Browse files
Renaming
1 parent dda2256 commit fa2af08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ class InteractiveDriver(settings: List[String]) extends Driver {
183183
* typed children if the source contains errors.
184184
*/
185185
private def cleanup(tree: tpd.Tree)(implicit ctx: Context): Unit = {
186-
val cleanedTree = mutable.Set.empty[tpd.Tree]
186+
val seen = mutable.Set.empty[tpd.Tree]
187187
def cleanupTree(tree: tpd.Tree): Unit = {
188-
cleanedTree += tree
188+
seen += tree
189189
tree.foreachSubTree { t =>
190190
if (t.hasType) {
191191
if (t.symbol.exists) {
192192
if (!t.symbol.isCompleted) t.symbol.info = UnspecifiedErrorType
193193
t.symbol.annotations.foreach { annot =>
194-
if (!cleanedTree(annot.tree))
194+
if (!seen(annot.tree))
195195
cleanupTree(annot.tree)
196196
}
197197
}

0 commit comments

Comments
 (0)