aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-01-15 10:31:26 +0100
committerMartin Odersky <odersky@gmail.com>2014-01-15 10:31:26 +0100
commita709a72cd2ff64e5fb81a388d95f85c62ede7db3 (patch)
tree2be08f3e9ccb14646b1d15f4c25a64bef972ca1f /src
parenta134d3975068b2439a8ed356750ffde45e874296 (diff)
downloaddotty-a709a72cd2ff64e5fb81a388d95f85c62ede7db3.tar.gz
dotty-a709a72cd2ff64e5fb81a388d95f85c62ede7db3.tar.bz2
dotty-a709a72cd2ff64e5fb81a388d95f85c62ede7db3.zip
Make Parsers Dotty-compliant.
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/parsing/Parsers.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/parsing/Parsers.scala b/src/dotty/tools/dotc/parsing/Parsers.scala
index 4b60c5ef6..cf0ab9f62 100644
--- a/src/dotty/tools/dotc/parsing/Parsers.scala
+++ b/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -136,7 +136,7 @@ object Parsers {
* - Definite statement starts on new lines, provided they are not more indented
* than the last known statement start before the error point.
*/
- protected def skip() {
+ protected def skip(): Unit = {
val skippedParens = new ParensCounters
while (true) {
(in.token: @switch) match {
@@ -603,21 +603,21 @@ object Parsers {
/* ------------- NEW LINES ------------------------------------------------- */
- def newLineOpt() {
+ def newLineOpt(): Unit = {
if (in.token == NEWLINE) in.nextToken()
}
- def newLinesOpt() {
+ def newLinesOpt(): Unit = {
if (in.token == NEWLINE || in.token == NEWLINES)
in.nextToken()
}
- def newLineOptWhenFollowedBy(token: Int) {
+ def newLineOptWhenFollowedBy(token: Int): Unit = {
// note: next is defined here because current == NEWLINE
if (in.token == NEWLINE && in.next.token == token) newLineOpt()
}
- def newLineOptWhenFollowing(p: Int => Boolean) {
+ def newLineOptWhenFollowing(p: Int => Boolean): Unit = {
// note: next is defined here because current == NEWLINE
if (in.token == NEWLINE && p(in.next.token)) newLineOpt()
}