From 43b68ece9773a551ce8044ad25b7ad35a70545af Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 24 Feb 2010 23:17:30 +0000 Subject: Bash completion! The file is automatically crea... Bash completion! The file is automatically created as part of the build process and placed in $pack/etc. % scala -Xprint -Xprint-icode -Xprint-pos -Xprint-types -Xprint: % scala -Xprint: all flatten mixin tailcalls cleanup icode namer terminal closelim inliner packageobjects typer constructors jvm parser uncurry dce lambdalift pickler erasure lazyvals refchecks explicitouter liftcode superaccessors % scala -g: line none notailcalls source vars % scala -Ystruct-dispatch: invoke-dynamic mono-cache no-cache poly-cache Review by community. --- src/compiler/scala/tools/nsc/Global.scala | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/compiler/scala/tools/nsc/Global.scala') 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 -- cgit v1.2.3