Packages

class Run extends RunContextApi with RunReporting with RunParsing

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

Annotations
@nowarn()
Source
Global.scala
Known Subclasses
Type Hierarchy
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. Protected

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 = firstPhase): Unit
  12. val compiledFiles: HashSet[String]
  13. final def compiles(sym: Global.Symbol): Boolean

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

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

    Annotations
    @tailrec()
  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 isScala212: Boolean
  23. val isScala213: Boolean
    Definition Classes
    RunRunParsing
  24. val isScala3: Boolean
  25. val jvmPhase: Phase
  26. val lambdaliftPhase: Phase
  27. val mixinPhase: Phase
  28. val namerPhase: Phase
  29. val parserPhase: Phase

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

  30. val parsing: Global.PerRunParsing
    Definition Classes
    RunParsing
  31. def phaseNamed(name: String): Phase
  32. val picklerPhase: Phase
  33. val posterasurePhase: Phase
  34. final def printStatisticsFor(phase: Phase): Unit
  35. val profiler: Profiler
  36. 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

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

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

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

    A map from compiled top-level symbols to their picklers

  46. val symSource: AnyRefMap[Global.Symbol, AbstractFile]

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

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