aboutsummaryrefslogblamecommitdiff
path: root/src/dotty/tools/dotc/Main.scala
blob: 627fc0cfaa89dd6b8c4ca8ce83ee1f8aa1cd0c95 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                          
                                                                                                      
                                                                                                                        


                                             
/* NSC -- new Scala compiler
 * Copyright 2005-2013 LAMP/EPFL
 * @author  Martin Odersky
 */
package dotty.tools
package dotc

import core.Contexts.Context

object Main extends Driver {
  def resident(compiler: Compiler): Unit = unsupported("resident") /*loop { line =>
    val command = new CompilerCommand(line split "\\s+" toList, new Settings(scalacError))
    compiler.reporter.reset()
    new compiler.Run() compile command.files
  }*/

  override def newCompiler(): Compiler = new Compiler

  override def doCompile(compiler: Compiler, fileNames: List[String])(implicit ctx: Context): Unit = {
    if (new config.Settings.Setting.SettingDecorator[Boolean](ctx.base.settings.resident).value(ctx)) resident(compiler)
    else super.doCompile(compiler, fileNames)
  }
}