summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-05-01 15:24:17 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-05-01 15:24:17 +0000
commit374bd7f7b064482eb8ca6ee0b513f89c11e31acc (patch)
tree313a6dc7e8251d40d52e531fa71b06463f85c010 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
parent570bb834c388537cebf049c5b30901866a978646 (diff)
downloadscala-374bd7f7b064482eb8ca6ee0b513f89c11e31acc.tar.gz
scala-374bd7f7b064482eb8ca6ee0b513f89c11e31acc.tar.bz2
scala-374bd7f7b064482eb8ca6ee0b513f89c11e31acc.zip
Fix for #773.
Problem was calling incompleteInputError multiple times would escalate the problem to be treated as a "real" error. This does not appear to be the correct semantics. Tried to fix this up as best as possible, but Sean needs to investigate the implications for the Eclipse plugin.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index 00d16ffc01..78af57b191 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -256,6 +256,8 @@ trait Parsers extends NewScanners with MarkupParsers {
syntaxError(inCurrentPos, msg, skipIt)
}
// unused.
+ /* Commented out because the comment says it is unused.
+ Probably eliminate eventually. GAW 2008.05.01
def mismatch(expected: Int, found: Int) {
val posToReport = this.posToReport
val msg =
@@ -267,6 +269,7 @@ trait Parsers extends NewScanners with MarkupParsers {
else
syntaxError(posToReport, msg, true)
}
+ */
/** Consume one token of the specified type, or
* signal an error if it is not there.