abstract class Driver

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]].

Members

protected def doCompile ( compiler: Compiler , fileNames: List [ String ] ) ( implicit ctx: Context ) : Reporter
protected def emptyReporter : Reporter
protected def initCtx : Context
def main ( args: Array [ String ] ) : Unit
protected def newCompiler ( implicit ctx: Context ) : Compiler
final def process ( args: Array [ String ] , simple: SimpleReporter , callback: CompilerCallback ) : ReporterResult

Entry point to the compiler that can be conveniently used with Java reflection.

This entry point can easily be used without depending on the dotty pack...

[https://github.com/lampepfl/dotty/tree/master/test/test/InterfaceEntryPointTest.scala]

final def process ( args: Array [ String ] , reporter: Reporter , callback: CompilerCallback ) : Reporter

Principal entry point to the compiler.

Usage example: [[https://github.com/lampepfl/dotty/tree/master/test/test/OtherEntryPointsTest.scala]] in method run...

final def process ( args: Array [ String ] ) : Reporter

Entry point to the compiler with no optional arguments.

This overload is provided for compatibility reasons: the RawCompiler of sbt expects this method...

def process ( args: Array [ String ] , rootCtx: Context ) : Reporter

Entry point to the compiler using a custom Context.

In most cases, you do not need a custom Context and should instead use one of the other overloads of...

[https://github.com/lampepfl/dotty/tree/master/test/test/OtherEntryPointsTest.scala]

def process$default$2 : Null

Principal entry point to the compiler.

Usage example: [[https://github.com/lampepfl/dotty/tree/master/test/test/OtherEntryPointsTest.scala]] in method run...

def process$default$3 : Null

Principal entry point to the compiler.

Usage example: [[https://github.com/lampepfl/dotty/tree/master/test/test/OtherEntryPointsTest.scala]] in method run...

def setup ( args: Array [ String ] , rootCtx: Context ) :
protected def sourcesRequired : Boolean