aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/parsing
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-07-19 19:08:42 +0200
committerMartin Odersky <odersky@gmail.com>2013-07-19 19:08:42 +0200
commit919310a29daebabe3335d428f5f5e52ed6295cbd (patch)
tree8f8e898afb10b3735cd1aa6101f19b19fbf18682 /src/dotty/tools/dotc/parsing
parent702c4fc89f3ff2abbc7457fd72ab19b5bbdbb782 (diff)
downloaddotty-919310a29daebabe3335d428f5f5e52ed6295cbd.tar.gz
dotty-919310a29daebabe3335d428f5f5e52ed6295cbd.tar.bz2
dotty-919310a29daebabe3335d428f5f5e52ed6295cbd.zip
Made reporting framework more lightweight and uniform in preparation of future integration of reporters in typerstate.
Diffstat (limited to 'src/dotty/tools/dotc/parsing')
-rw-r--r--src/dotty/tools/dotc/parsing/Parsers.scala4
-rw-r--r--src/dotty/tools/dotc/parsing/Scanners.scala2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/parsing/Parsers.scala b/src/dotty/tools/dotc/parsing/Parsers.scala
index 85d134653..04932c7f0 100644
--- a/src/dotty/tools/dotc/parsing/Parsers.scala
+++ b/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -176,7 +176,7 @@ object Parsers {
ctx.warning(msg, source atPos Position(offset))
def deprecationWarning(msg: String, offset: Int = in.offset) =
- ctx.deprecation.warning(msg, source atPos Position(offset))
+ ctx.deprecationWarning(msg, source atPos Position(offset))
/** The offset where the last syntax error was reported, or if a skip to a
* safepoint occurred afterwards, the offset of the safe point.
@@ -200,7 +200,7 @@ object Parsers {
/** Issue an error at current offset taht input is incomplete */
def incompleteInputError(msg: String) =
- ctx.reporter.incompleteInputError(msg, source atPos Position(in.offset))
+ ctx.incompleteInputError(msg, source atPos Position(in.offset))
/** If at end of file, issue an incompleteInputError.
* Otherwise issue a syntax error and skip to next safe point.
diff --git a/src/dotty/tools/dotc/parsing/Scanners.scala b/src/dotty/tools/dotc/parsing/Scanners.scala
index c923b7c6c..f254cab17 100644
--- a/src/dotty/tools/dotc/parsing/Scanners.scala
+++ b/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -940,7 +940,7 @@ object Scanners {
/** signal an error where the input ended in the middle of a token */
def incompleteInputError(msg: String) {
- ctx.reporter.incompleteInputError(msg, source atPos Position(offset))
+ ctx.incompleteInputError(msg, source atPos Position(offset))
token = EOF
errOffset = offset
}