File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/interactive Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -183,15 +183,15 @@ class InteractiveDriver(settings: List[String]) extends Driver {
183
183
* typed children if the source contains errors.
184
184
*/
185
185
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 ]
187
187
def cleanupTree (tree : tpd.Tree ): Unit = {
188
- cleanedTree += tree
188
+ seen += tree
189
189
tree.foreachSubTree { t =>
190
190
if (t.hasType) {
191
191
if (t.symbol.exists) {
192
192
if (! t.symbol.isCompleted) t.symbol.info = UnspecifiedErrorType
193
193
t.symbol.annotations.foreach { annot =>
194
- if (! cleanedTree (annot.tree))
194
+ if (! seen (annot.tree))
195
195
cleanupTree(annot.tree)
196
196
}
197
197
}
You can’t perform that action at this time.
0 commit comments