diff options
author | Martin Odersky <odersky@gmail.com> | 2016-02-14 15:54:47 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-17 18:39:35 +0100 |
commit | 37b6df435f1595f8610ec6d5fbe16d079da2eff7 (patch) | |
tree | b1509a660d4efe62783ec30a8cb9bff0c5e2bfeb | |
parent | 46ad05fe0bbb23ab77013f27d68926d2daed3f2b (diff) | |
download | dotty-37b6df435f1595f8610ec6d5fbe16d079da2eff7.tar.gz dotty-37b6df435f1595f8610ec6d5fbe16d079da2eff7.tar.bz2 dotty-37b6df435f1595f8610ec6d5fbe16d079da2eff7.zip |
Export run context
-rw-r--r-- | src/dotty/tools/dotc/Run.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala index ba86e3e70..39fd42a64 100644 --- a/src/dotty/tools/dotc/Run.scala +++ b/src/dotty/tools/dotc/Run.scala @@ -82,6 +82,9 @@ class Run(comp: Compiler)(implicit ctx: Context) { compileSources(List(new SourceFile(virtualFile))) } + /** The context created for this run */ + def runContext = ctx + /** Print summary; return # of errors encountered */ def printSummary(): Reporter = { ctx.runInfo.printMaxConstraint() |