summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-23 08:51:05 -0700
committerPaul Phillips <paulp@improving.org>2012-04-23 08:51:05 -0700
commit7ec2126fbb1db361dd420e4072c659d65e21e72d (patch)
tree3ddc3befff78c091ef9afdefd97bc9111cdc7031 /src
parentb0ed33a2a2902aa10b20060c97d144cb07297635 (diff)
downloadscala-7ec2126fbb1db361dd420e4072c659d65e21e72d.tar.gz
scala-7ec2126fbb1db361dd420e4072c659d65e21e72d.tar.bz2
scala-7ec2126fbb1db361dd420e4072c659d65e21e72d.zip
Revert "Fix for range positions."
This reverts commit b47189ad06e027c310d93b071fc8bf15d979225d. This never happened.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/PatMatVirtualiser.scala7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/PatMatVirtualiser.scala b/src/compiler/scala/tools/nsc/typechecker/PatMatVirtualiser.scala
index 838c7f8abd..88cea2231f 100644
--- a/src/compiler/scala/tools/nsc/typechecker/PatMatVirtualiser.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/PatMatVirtualiser.scala
@@ -1020,12 +1020,7 @@ class Foo(x: Other) { x._1 } // no error in this order
override def traverse(t: Tree) {
if (t != EmptyTree && t.pos == NoPosition) {
- t setPos pos
- // During a recursive descent traversal which prunes when it sees
- // a position, one can't assign the position and THEN recurse.
- // Ensuring that all children have compliant range positions.
- for (t1 <- t ; if t1 ne t)
- t1 setPos pos.makeTransparent
+ t.setPos(pos)
}
t match {
case Function(_, _) if t.symbol == NoSymbol =>