dotty.tools.dotc

Type members

Classlikes

object Bench extends Driver

A main class for running compiler benchmarks. Can instantiate a given number of compilers and run each (sequentially) a given number of times on the same sources.

A main class for running compiler benchmarks. Can instantiate a given number of compilers and run each (sequentially) a given number of times on the same sources.

Companion:
object
Companion:
class
class Compiler

The central class of the dotc compiler. The job of a compiler is to create runs, which process given phases in a given rootContext.

The central class of the dotc compiler. The job of a compiler is to create runs, which process given phases in a given rootContext.

class Driver

Run the Dotty compiler.

Run the Dotty compiler.

Extending this class lets you customize many aspect of the compilation process, but in most cases you only need to call process on the existing object Main.

object Main extends Driver

Main class of the dotc batch compiler.

Main class of the dotc batch compiler.

class MissingCoreLibraryException(rootPackage: String) extends FatalError
class Resident extends Driver

A compiler which stays resident between runs. This is more of a PoC than something that's expected to be used often

A compiler which stays resident between runs. This is more of a PoC than something that's expected to be used often

Usage:

scala dotty.tools.dotc.Resident

dotc> "more options and files to compile"

...

dotc> :reset // reset all options to the ones passed on the command line

...

dotc> :q // quit

class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with ConstraintRunInfo

A compiler run. Exports various methods to compile source files

A compiler run. Exports various methods to compile source files

object report