diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-06-26 11:21:15 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-17 15:41:27 +0200 |
commit | 64ebac245d58221814f9c9375927e3f2e7a2d4f0 (patch) | |
tree | a64a148be77a7dd629fb1cefad955c123fc42fc8 /src/compiler/scala/tools/nsc/javac | |
parent | 638b4c3f5b5721b68a6af97e237b4f056c2da7ed (diff) | |
download | scala-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/javac')
-rw-r--r-- | src/compiler/scala/tools/nsc/javac/JavaScanners.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/javac/JavaScanners.scala b/src/compiler/scala/tools/nsc/javac/JavaScanners.scala index bddcf6567c..ac86dfd665 100644 --- a/src/compiler/scala/tools/nsc/javac/JavaScanners.scala +++ b/src/compiler/scala/tools/nsc/javac/JavaScanners.scala @@ -861,7 +861,7 @@ trait JavaScanners extends ast.parser.ScannersCommon { in = new JavaCharArrayReader(unit.source.content, !settings.nouescape.value, syntaxError) init() def error (pos: Int, msg: String) = reporter.error(pos, msg) - def incompleteInputError(pos: Int, msg: String) = currentRun.reporting.incompleteInputError(pos, msg) + def incompleteInputError(pos: Int, msg: String) = currentRun.parsing.incompleteInputError(pos, msg) def deprecationWarning(pos: Int, msg: String) = currentRun.reporting.deprecationWarning(pos, msg) implicit def g2p(pos: Int): Position = Position.offset(unit.source, pos) } |