summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-02-20 17:05:17 +0000
committerMartin Odersky <odersky@gmail.com>2011-02-20 17:05:17 +0000
commitd221cef8aaa2b8d80a94d1ce7b9525b6008e1c2a (patch)
treefc3a47d6b317f1fc5b276a7191c19d93d24928b6 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
parentfd1ca1e63c876046936f681be26730a301da8ff2 (diff)
downloadscala-d221cef8aaa2b8d80a94d1ce7b9525b6008e1c2a.tar.gz
scala-d221cef8aaa2b8d80a94d1ce7b9525b6008e1c2a.tar.bz2
scala-d221cef8aaa2b8d80a94d1ce7b9525b6008e1c2a.zip
Making parsing more interruptible + better timi...
Making parsing more interruptible + better timing info in logs.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index d75d28c45f..ed92afe5de 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -2314,7 +2314,7 @@ self =>
var newmods = mods
val nameOffset = in.offset
val name = ident()
- atPos(start, if (name == nme.ERROR) start else nameOffset) {
+ val result = atPos(start, if (name == nme.ERROR) start else nameOffset) {
// contextBoundBuf is for context bounded type parameters of the form
// [T : B] or [T : => B]; it contains the equivalent implicit parameter type,
// i.e. (B[T] or T => B)
@@ -2336,6 +2336,8 @@ self =>
}
DefDef(newmods, name, tparams, vparamss, restype, rhs)
}
+ signalParseProgress(result.pos)
+ result
}
}