diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-25 06:00:59 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-25 06:00:59 +0000 |
commit | 728775440ccd67928c25914a1e003ff9765ad80b (patch) | |
tree | bc0d55939eb9ed99cd869dc5a9dbbc1f7b4c4555 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | 2cef1c58a54c996243fb85630cce841073c18650 (diff) | |
download | scala-728775440ccd67928c25914a1e003ff9765ad80b.tar.gz scala-728775440ccd67928c25914a1e003ff9765ad80b.tar.bz2 scala-728775440ccd67928c25914a1e003ff9765ad80b.zip |
Deprecation patrol.
compile scalac with -deprecation and not cause any machines to catch
fire. Most of the remaining warnings are glancing furtively at Tuple2,
waiting for the moment to pounce.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index c2cb2128ee..d17018d47e 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -273,10 +273,7 @@ self => def incompleteInputError(msg: String): Unit def deprecationWarning(offset: Int, msg: String): Unit private def syntaxError(pos: Position, msg: String, skipIt: Boolean) { - pos.offset match { - case None => syntaxError(msg,skipIt) - case Some(offset) => syntaxError(offset, msg, skipIt) - } + syntaxError(pos pointOrElse in.offset, msg, skipIt) } def syntaxError(offset: Int, msg: String): Unit def syntaxError(msg: String, skipIt: Boolean) { |