aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Run.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-14 15:54:47 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-17 18:39:35 +0100
commit37b6df435f1595f8610ec6d5fbe16d079da2eff7 (patch)
treeb1509a660d4efe62783ec30a8cb9bff0c5e2bfeb /src/dotty/tools/dotc/Run.scala
parent46ad05fe0bbb23ab77013f27d68926d2daed3f2b (diff)
downloaddotty-37b6df435f1595f8610ec6d5fbe16d079da2eff7.tar.gz
dotty-37b6df435f1595f8610ec6d5fbe16d079da2eff7.tar.bz2
dotty-37b6df435f1595f8610ec6d5fbe16d079da2eff7.zip
Export run context
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r--src/dotty/tools/dotc/Run.scala3
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()