summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
diff options
context:
space:
mode:
authorMiles Sabin <miles@milessabin.com>2009-10-08 21:16:46 +0000
committerMiles Sabin <miles@milessabin.com>2009-10-08 21:16:46 +0000
commit25a6ed98b2808e39786b2bf51b5e5be9b888bbaa (patch)
tree7b160ffcaf0e96934c1d26532df095ccf99b442f /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
parent0c57ba75d056a75e88db4bcf890abd58cd8fcb2d (diff)
downloadscala-25a6ed98b2808e39786b2bf51b5e5be9b888bbaa.tar.gz
scala-25a6ed98b2808e39786b2bf51b5e5be9b888bbaa.tar.bz2
scala-25a6ed98b2808e39786b2bf51b5e5be9b888bbaa.zip
Make the positions of the children of an Import...
Make the positions of the children of an Import transparent so that the interactive compiler will always find the Import rather than the children.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala2
1 files changed, 2 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 7730b2c48e..6bd9371c2a 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -1889,6 +1889,7 @@ self =>
} else {
t = id
}
+ t setPos t.pos.makeTransparent
}
def loop(): Tree =
if (in.token == USCORE) {
@@ -1904,6 +1905,7 @@ self =>
t = atPos(start, if (name == nme.ERROR) in.offset else nameOffset) {
Select(t, name)
}
+ t setPos t.pos.makeTransparent
in.nextToken()
loop()
} else {