File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11package dotty .tools
22package dotc
33
4+ import dotty .tools .dotc .core .Types .Type // FIXME Why is this import needed in posTwice testNonCyclic?
45import util .SourceFile
5- import ast .{tpd , untpd }
6- import dotty .tools .dotc .ast .tpd .{ Tree , TreeTraverser }
6+ import dotty .tools .dotc .ast .{ tpd , untpd }
77import dotty .tools .dotc .core .Contexts .Context
88import dotty .tools .dotc .core .SymDenotations .ClassDenotation
99import dotty .tools .dotc .core .Symbols ._
@@ -25,7 +25,7 @@ class CompilationUnit(val source: SourceFile) {
2525object CompilationUnit {
2626
2727 /** 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 = {
2929 val file = Option (clsd.symbol.sourceFile).getOrElse(clsd.symbol.associatedFile)
3030 val unit1 = new CompilationUnit (new SourceFile (file, Seq ()))
3131 unit1.tpdTree = unpickled
@@ -35,7 +35,7 @@ object CompilationUnit {
3535 }
3636
3737 /** 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)
4040 }
4141}
You can’t perform that action at this time.
0 commit comments