diff options
author | Paul Phillips <paulp@improving.org> | 2012-03-26 06:40:14 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-03-26 11:29:31 -0700 |
commit | 2a917f4830fe80987dcea05df74bb5c0a0359833 (patch) | |
tree | c6d37f3c739863f11c3e52c956edb1b148f5ed4d /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | a532ba0600444b3564b6b015688ebc4cdf084ba6 (diff) | |
download | scala-2a917f4830fe80987dcea05df74bb5c0a0359833.tar.gz scala-2a917f4830fe80987dcea05df74bb5c0a0359833.tar.bz2 scala-2a917f4830fe80987dcea05df74bb5c0a0359833.zip |
Syntactic/organizational optimizations in Settings.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index ccebcfa54d..45325b4694 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1394,13 +1394,7 @@ self => } } } else if (in.token == MATCH) { - t = atPos(t.pos.startOrPoint, in.skipToken()) { - /** For debugging pattern matcher transition issues */ - if (settings.Ypmatnaive.value) - makeSequencedMatch(stripParens(t), inBracesOrNil(caseClauses())) - else - Match(stripParens(t), inBracesOrNil(caseClauses())) - } + t = atPos(t.pos.startOrPoint, in.skipToken())(Match(stripParens(t), inBracesOrNil(caseClauses()))) } // in order to allow anonymous functions as statements (as opposed to expressions) inside // templates, we have to disambiguate them from self type declarations - bug #1565 |