summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-06-26 11:21:15 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-07-17 15:41:27 +0200
commit64ebac245d58221814f9c9375927e3f2e7a2d4f0 (patch)
treea64a148be77a7dd629fb1cefad955c123fc42fc8 /src/compiler/scala/tools/nsc/Global.scala
parent638b4c3f5b5721b68a6af97e237b4f056c2da7ed (diff)
downloadscala-64ebac245d58221814f9c9375927e3f2e7a2d4f0.tar.gz
scala-64ebac245d58221814f9c9375927e3f2e7a2d4f0.tar.bz2
scala-64ebac245d58221814f9c9375927e3f2e7a2d4f0.zip
Move more parsing hooks out of reporting.
Create a trait Parsing, which, like Reporting, factors our functionality from Global (aka. "the cake"), that is related to global aspects of configuring parsing.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 72464cea8a..0ee7f4e21c 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -45,7 +45,8 @@ class Global(var currentSettings: Settings, var reporter: Reporter)
with Printers
with DocComments
with Positions
- with Reporting { self =>
+ with Reporting
+ with Parsing { self =>
// the mirror --------------------------------------------------
@@ -1163,7 +1164,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter)
/** A Run is a single execution of the compiler on a set of units.
*/
- class Run extends RunContextApi with RunReporting {
+ class Run extends RunContextApi with RunReporting with RunParsing {
/** Have been running into too many init order issues with Run
* during erroneous conditions. Moved all these vals up to the
* top of the file so at least they're not trivially null.