dotty.tools.dotc.repl

Main

Related Doc: package repl

object Main extends REPL

The main entry point of the REPL

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

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. lazy val config: Config

    Definition Classes
    REPL
  7. def doCompile(compiler: Compiler, fileNames: List[String])(implicit ctx: Context): Reporter

    Definition Classes
    REPLDriver
  8. def emptyReporter: Reporter

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  14. def initCtx: Context

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

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

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

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

    Definition Classes
    REPLDriver
  19. final def notify(): Unit

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

    Definition Classes
    AnyRef
  21. 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
    Driver
  22. 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
  23. 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
  24. 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
  25. def setup(args: Array[String], rootCtx: Context): (List[String], Context)

    Definition Classes
    REPLDriver
  26. def sourcesRequired: Boolean

    Definition Classes
    REPLDriver
  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 REPL

Inherited from Driver

Inherited from DotClass

Inherited from AnyRef

Inherited from Any

Ungrouped