File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
package dotty .tools .dotc .transform
2
2
3
- import dotty .tools .dotc .{ CompilationUnit , FromTasty }
3
+ import dotty .tools .dotc .CompilationUnit
4
4
import dotty .tools .dotc .ast .Trees ._
5
5
import dotty .tools .dotc .ast .tpd
6
6
import dotty .tools .dotc .core .Contexts ._
@@ -20,6 +20,7 @@ class LinkAll extends MiniPhaseTransform {
20
20
21
21
override def phaseName = " linkAll"
22
22
23
+ /** Do not transform the any tree, runOn will traverse the trees and reload compilation units if needed */
23
24
override def prepareForUnit (tree : tpd.Tree )(implicit ctx : Context ): TreeTransform = NoTransform
24
25
25
26
override def runOn (units : List [CompilationUnit ])(implicit ctx : Context ): List [CompilationUnit ] = {
@@ -31,7 +32,6 @@ class LinkAll extends MiniPhaseTransform {
31
32
val classesToLoad = unprocessed.foldLeft(Set .empty[ClassDenotation ])((acc, unit) => accum.apply(acc, unit.tpdTree)) -- loadedClasses
32
33
val loadedUnits = classesToLoad.flatMap(cls => loadCompilationUnit(cls))
33
34
allUnits(processed ++ unprocessed, loadedUnits, loadedClasses ++ classesToLoad)
34
-
35
35
}
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments