We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1facd5 + d0c8d9d commit 68cc0b7Copy full SHA for 68cc0b7
src/dotty/tools/dotc/Driver.scala
@@ -44,8 +44,14 @@ abstract class Driver extends DotClass {
44
doCompile(newCompiler(), fileNames)(ctx)
45
}
46
47
+ // We overload `process` instead of using a default argument so that we
48
+ // can easily call this method using reflection from `RawCompiler` in sbt.
49
+ def process(args: Array[String]): Reporter = {
50
+ process(args, initCtx)
51
+ }
52
+
53
def main(args: Array[String]): Unit =
- sys.exit(if (process(args, initCtx).hasErrors) 1 else 0)
54
+ sys.exit(if (process(args).hasErrors) 1 else 0)
55
56
57
class FatalError(msg: String) extends Exception
0 commit comments