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 the unit until globalPhase, but at least to phase "typer".

  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 a list of source files, unless there is a problem already, e.g., 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 isScala3: Boolean
  23. val isScala3ImplicitResolution: Boolean
  24. val jvmPhase: Phase
  25. val lambdaliftPhase: Phase
  26. val mixinPhase: Phase
  27. val namerPhase: Phase
  28. val parserPhase: Phase

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

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

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

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

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

    A map from compiled top-level symbols to their picklers

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

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

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