diff options
author | Miles Sabin <miles@milessabin.com> | 2009-07-28 14:55:35 +0000 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2009-07-28 14:55:35 +0000 |
commit | 5775f1b8875f12e5fc0403d4e048add6781eb7ff (patch) | |
tree | f46819728328e6e6059b329a7e06cd24c72bbfdb /src | |
parent | 01ed33304a01d9917d1e315613a89771389eea1e (diff) | |
download | scala-5775f1b8875f12e5fc0403d4e048add6781eb7ff.tar.gz scala-5775f1b8875f12e5fc0403d4e048add6781eb7ff.tar.bz2 scala-5775f1b8875f12e5fc0403d4e048add6781eb7ff.zip |
A couple more positions issues caused by the pa...
A couple more positions issues caused by the packaging changes: fixed
with test cases; test.positions target now runs the explicit test cases
first.
Diffstat (limited to 'src')
-rwxr-xr-x | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 129e974e76..0c1198cdcf 100755 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -2341,7 +2341,7 @@ self => /** Create a tree representing a packaging */ def makePackaging(start: Int, pkg: Tree, stats: List[Tree]): PackageDef = - atPos(start, pkg.pos.point) { PackageDef(pkg.asInstanceOf[RefTree], stats) } + atPos(start, pkg.pos.point, in.lastOffset max start) { PackageDef(pkg.asInstanceOf[RefTree], stats) } /* pkg match { case id @ Ident(_) => @@ -2566,7 +2566,7 @@ self => } ts.toList } - val start = in.offset + val start = in.offset max 0 atPos(start) { topstats() match { case List(stat @ PackageDef(_, _)) => stat |