From 37b6df435f1595f8610ec6d5fbe16d079da2eff7 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 14 Feb 2016 15:54:47 +0100 Subject: Export run context --- src/dotty/tools/dotc/Run.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dotty/tools/dotc/Run.scala') 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() -- cgit v1.2.3