File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed
compiler/src/dotty/tools/dotc
doc-tool/src/dotty/tools/dottydoc Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import scala.tasty.file.TastyConsumer
88class TastyFromClass (consumer : TastyConsumer ) extends TASTYCompiler {
99
1010 override protected def frontendPhases : List [List [Phase ]] =
11- List (new ReadTastyTreesFromClasses ) :: // Load classes from tasty
11+ List (new ReadTasty ) :: // Load classes from tasty
1212 Nil
1313
1414 override protected def picklerPhases : List [List [Phase ]] = Nil
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import dotty.tools.dotc.core.Phases.Phase
1111class TASTYDecompiler extends TASTYCompiler {
1212
1313 override protected def frontendPhases : List [List [Phase ]] =
14- List (new ReadTastyTreesFromClasses ) :: // Load classes from tasty
14+ List (new ReadTasty ) :: // Load trees from TASTY files
1515 Nil
1616
1717 override protected def picklerPhases : List [List [Phase ]] = Nil
Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ import ast.Trees.Tree
1212import CompilationUnit .mkCompilationUnit
1313import Phases .Phase
1414
15- class ReadTastyTreesFromClasses extends Phase {
1615
17- def phaseName : String = " tastyFrontend"
16+ /** Load trees from TASTY files */
17+ class ReadTasty extends Phase {
18+
19+ def phaseName : String = " readTasty"
1820
1921 override def isRunnable (implicit ctx : Context ): Boolean =
2022 ctx.settings.fromTasty.value
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import dotty.tools.dotc.transform._
1010class TASTYCompiler extends Compiler {
1111
1212 override protected def frontendPhases : List [List [Phase ]] =
13- List (new ReadTastyTreesFromClasses ) :: Nil
13+ List (new ReadTasty ) :: Nil
1414
1515 override def newRun (implicit ctx : Context ): Run = {
1616 reset()
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import dotc.core.Mode
99import dotc .{Compiler , CompilationUnit , Run }
1010import dotc .typer .FrontEnd
1111
12- import dotty .tools .dotc .fromtasty .{ReadTastyTreesFromClasses , TASTYRun }
12+ import dotty .tools .dotc .fromtasty .{ReadTasty , TASTYRun }
1313import dotty .tools .dotc .transform .CookComments
1414
1515/** Custom Compiler with phases for the documentation tool
@@ -54,7 +54,7 @@ class DocCompiler extends Compiler {
5454
5555 override def phases : List [List [Phase ]] = List (
5656 List (new DocFrontEnd ),
57- List (new ReadTastyTreesFromClasses ),
57+ List (new ReadTasty ),
5858 List (new CookComments ),
5959 List (new DocImplicitsPhase ),
6060 List (new DocASTPhase ),
You can’t perform that action at this time.
0 commit comments