Packages

class Run extends RunContextApi with RunReporting with RunParsing

A Run is a single execution of the compiler on a set of units.

Source
Global.scala
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Run
  2. RunParsing
  3. RunReporting
  4. RunContextApi
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Run()

Value Members

  1. def advancePhase(): Unit

    take note that phase is completed (for progress reporting)

  2. def advanceUnit(): Unit

    take note that a phase on a unit is completed (for progress reporting)

  3. def canRedefine(sym: Global.Symbol): Boolean

    Is this run allowed to redefine the given symbol? Usually this is true if the run does not already compile sym, but for interactive mode we have a more liberal interpretation.

  4. def cancel(): Unit
  5. val cleanupPhase: Phase
  6. def compile(filenames: List[String]): Unit

    Compile list of files given by their names

  7. def compileFiles(files: List[AbstractFile]): Unit

    Compile list of abstract files.

  8. def compileLate(unit: Global.CompilationUnit): Unit

    Compile abstract file until globalPhase, but at least to phase "namer".

  9. def compileLate(file: AbstractFile): Unit

    Compile abstract file until globalPhase, but at least to phase "namer".

  10. def compileSources(sources: List[SourceFile]): Unit

    Compile list of source files, unless there is a problem already, such as a plugin was passed a bad option.

  11. def compileUnits(units: List[Global.CompilationUnit], fromPhase: Phase): Unit
  12. val compiledFiles: HashSet[String]
  13. def compiles(sym: Global.Symbol): Boolean

    does this run compile given class, module, or case factory?

  14. var currentUnit: Global.CompilationUnit

    The currently compiled unit; set from GlobalPhase

    The currently compiled unit; set from GlobalPhase

    Definition Classes
    Run → RunContextApi
  15. val delambdafyPhase: Phase
  16. def deprecationWarnings: List[(Global.Position, String)]
  17. val erasurePhase: Phase
  18. val explicitouterPhase: Phase
  19. val flattenPhase: Phase
  20. def informUnitStarting(phase: Phase, unit: Global.CompilationUnit): Unit

    For subclasses to override.

    For subclasses to override. Called when phase is about to be run on unit. Variables are passed explicitly to indicate that globalPhase and currentUnit have been set.

  21. var isDefined: Boolean

    Have been running into too many init order issues with Run during erroneous conditions.

    Have been running into too many init order issues with Run during erroneous conditions. Moved all these vals up to the top of the file so at least they're not trivially null.

  22. val isScala211: Boolean
  23. val isScala212: Boolean
  24. val isScala213: Boolean
  25. val isScala3: Boolean
  26. val jvmPhase: Phase
  27. val lambdaliftPhase: Phase
  28. val mixinPhase: Phase
  29. val namerPhase: Phase
  30. val parserPhase: Phase

    All phases as of 3/2012 here for handiness; the ones in active use uncommented.

  31. val parsing: Global.PerRunParsing
    Definition Classes
    RunParsing
  32. def phaseNamed(name: String): Phase
  33. val picklerPhase: Phase
  34. val posterasurePhase: Phase
  35. final def printStatisticsFor(phase: Phase): Unit
  36. val profiler: Profiler
  37. def progress(current: Int, total: Int): Unit

    Progress tracking.

    Progress tracking. Measured in "progress units" which are 1 per compilation unit per phase completed.

    current

    number of "progress units" completed

    total

    total number of "progress units" in run

  38. val refchecksPhase: Phase
  39. def registerPickle(sym: Global.Symbol): Unit
  40. val reporting: Global.PerRunReporting
    Definition Classes
    RunReporting
  41. val runDefinitions: reflect.internal.Definitions.definitions.RunDefinitions

    Caching member symbols that are def-s in Definitions because they might change from Run to Run.

  42. def runIsAt(ph: Phase): Boolean
  43. def runIsAtOptimiz: Boolean
  44. def size: Int
  45. val specializePhase: Phase
  46. val symData: AnyRefMap[Global.Symbol, PickleBuffer]

    A map from compiled top-level symbols to their picklers

  47. val symSource: HashMap[Global.Symbol, AbstractFile]

    A map from compiled top-level symbols to their source files

  48. def toString(): String
    Definition Classes
    Run → AnyRef → Any
  49. val typerPhase: Phase
  50. def uncheckedWarnings: List[(Global.Position, String)]
  51. val uncurryPhase: Phase
  52. def units: Iterator[Global.CompilationUnit]
    Definition Classes
    Run → RunContextApi
  53. object trackerFactory extends SymbolTrackers