diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 0590797e53..4e14ec6fb1 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -549,13 +549,16 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable /* The set of phase objects that is the basis for the compiler phase chain */ protected val phasesSet : HashSet[SubComponent] = new HashSet[SubComponent] - /** A description of the phases that will run */ - def phaseDescriptions: String = { + /** The names of the phases. */ + lazy val phaseNames = { new Run // force some initialization - - phaseDescriptors map (_.phaseName) mkString "\n" // todo: + " - " + phase.description + phaseDescriptors map (_.phaseName) } + /** A description of the phases that will run */ + def phaseDescriptions: String = + phaseNames mkString "\n" // todo: + " - " + phase.description + // ----------- Runs --------------------------------------- private var curRun: Run = null |