File tree 1 file changed +5
-5
lines changed
compiler/src/dotty/tools/dotc
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
package dotty .tools
2
2
package dotc
3
3
4
+ import dotty .tools .dotc .core .Types .Type // FIXME Why is this import needed in posTwice testNonCyclic?
4
5
import util .SourceFile
5
- import ast .{tpd , untpd }
6
- import dotty .tools .dotc .ast .tpd .{ Tree , TreeTraverser }
6
+ import dotty .tools .dotc .ast .{ tpd , untpd }
7
7
import dotty .tools .dotc .core .Contexts .Context
8
8
import dotty .tools .dotc .core .SymDenotations .ClassDenotation
9
9
import dotty .tools .dotc .core .Symbols ._
@@ -25,7 +25,7 @@ class CompilationUnit(val source: SourceFile) {
25
25
object CompilationUnit {
26
26
27
27
/** Make a compilation unit for top class `clsd` with the contends of the `unpickled` */
28
- def mkCompilationUnit (clsd : ClassDenotation , unpickled : Tree , forceTrees : Boolean )(implicit ctx : Context ): CompilationUnit = {
28
+ def mkCompilationUnit (clsd : ClassDenotation , unpickled : tpd. Tree , forceTrees : Boolean )(implicit ctx : Context ): CompilationUnit = {
29
29
val file = Option (clsd.symbol.sourceFile).getOrElse(clsd.symbol.associatedFile)
30
30
val unit1 = new CompilationUnit (new SourceFile (file, Seq ()))
31
31
unit1.tpdTree = unpickled
@@ -35,7 +35,7 @@ object CompilationUnit {
35
35
}
36
36
37
37
/** Force the tree to be loaded */
38
- private object force extends TreeTraverser {
39
- def traverse (tree : Tree )(implicit ctx : Context ): Unit = traverseChildren(tree)
38
+ private object force extends tpd. TreeTraverser {
39
+ def traverse (tree : tpd. Tree )(implicit ctx : Context ): Unit = traverseChildren(tree)
40
40
}
41
41
}
You can’t perform that action at this time.
0 commit comments