dotty.tools.dotc

Resident

Related Doc: package dotc

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

Usage:

> scala dotty.tools.dotc.Resident <options> <initial files>

dotc> "more options and files to compile"

...

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

...

dotc> :q // quit

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Resident
  2. Driver
  3. DotClass
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Resident()

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def doCompile(compiler: Compiler, fileNames: List[String])(implicit ctx: Context): Reporter

    Attributes
    protected
    Definition Classes
    Driver
  7. def emptyReporter: Reporter

    Attributes
    protected
    Definition Classes
    Driver
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. def initCtx: Context

    Attributes
    protected
    Definition Classes
    Driver
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def main(args: Array[String]): Unit

    Definition Classes
    Driver
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def newCompiler(implicit ctx: Context): Compiler

    Definition Classes
    ResidentDriver
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def process(args: Array[String], rootCtx: Context): Reporter

    Entry point to the compiler using a custom Context.

    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 process. However, the other overloads cannot be overriden, instead you should override this one which they call internally.

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

    args

    Arguments to pass to the compiler.

    rootCtx

    The root Context to use.

    returns

    The Reporter used. Use Reporter#hasErrors to check if compilation succeeded.

    Definition Classes
    ResidentDriver
  21. final def process(args: Array[String]): Reporter

    Entry point to the compiler with no optional arguments.

    Entry point to the compiler with no optional arguments.

    This overload is provided for compatibility reasons: the RawCompiler of sbt expects this method to exist and calls it using reflection. Keeping it means that we can change the other overloads without worrying about breaking compatibility with sbt.

    Definition Classes
    Driver
  22. final def process(args: Array[String], reporter: Reporter = null, callback: CompilerCallback = null): Reporter

    Principal entry point to the compiler.

    Principal entry point to the compiler.

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

    args

    Arguments to pass to the compiler.

    reporter

    Used to log errors, warnings, and info messages. The default reporter is used if this is null.

    callback

    Used to execute custom code during the compilation process. No callbacks will be executed if this is null.

    returns

    The Reporter used. Use Reporter#hasErrors to check if compilation succeeded.

    Definition Classes
    Driver
  23. final def process(args: Array[String], simple: SimpleReporter, callback: CompilerCallback): ReporterResult

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

    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 package, you only need to depend on dotty-interfaces and call this method using reflection. This allows you to write code that will work against multiple versions of dotty without recompilation.

    The trade-off is that you can only pass a SimpleReporter to this method and not a normal Reporter which is more powerful.

    Usage example: https://github.com/lampepfl/dotty/tree/master/test/test/InterfaceEntryPointTest.scala

    args

    Arguments to pass to the compiler.

    simple

    Used to log errors, warnings, and info messages. The default reporter is used if this is null.

    callback

    Used to execute custom code during the compilation process. No callbacks will be executed if this is null.

    returns

    Definition Classes
    Driver
  24. object residentCompiler extends Compiler

  25. def setup(args: Array[String], rootCtx: Context): (List[String], Context)

    Definition Classes
    Driver
  26. def sourcesRequired: Boolean

    Definition Classes
    ResidentDriver
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def unsupported(methodName: String): Nothing

    Throws an UnsupportedOperationException with the given method name.

    Throws an UnsupportedOperationException with the given method name.

    Definition Classes
    DotClass
  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Driver

Inherited from DotClass

Inherited from AnyRef

Inherited from Any

Ungrouped