dotty.tools.dotc

Members list

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.

Attributes

Supertypes
class Driver
class Object
trait Matchable
class Any
Self type
Bench.type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
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.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
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.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Main
object Bench
object Main
class Resident
class ReplDriver
class StringDriver
Show all
object Main extends Driver

Main class of the dotc batch compiler.

Main class of the dotc batch compiler.

Attributes

Supertypes
class Driver
class Object
trait Matchable
class Any
Self type
Main.type
class MissingCoreLibraryException(rootPackage: String) extends FatalError

Attributes

Supertypes
class FatalError
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
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

Attributes

Supertypes
class Driver
class Object
trait Matchable
class Any
class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo, ConstraintRunInfo

A compiler run. Exports various methods to compile source files

A compiler run. Exports various methods to compile source files

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class TASTYRun
object Run

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Run.type

Attributes

Supertypes
trait CliCommand
class Object
trait Matchable
class Any
Self type
object report

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
report.type