summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-24 23:17:30 +0000
committerPaul Phillips <paulp@improving.org>2010-02-24 23:17:30 +0000
commit43b68ece9773a551ce8044ad25b7ad35a70545af (patch)
treed244822bc11ad8665f2ecea018de47012d75f244 /src/compiler/scala/tools/nsc/Global.scala
parentcd5525a9898da03241f978eb3c7fda633d0d0536 (diff)
downloadscala-43b68ece9773a551ce8044ad25b7ad35a70545af.tar.gz
scala-43b68ece9773a551ce8044ad25b7ad35a70545af.tar.bz2
scala-43b68ece9773a551ce8044ad25b7ad35a70545af.zip
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.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala11
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