From 5775f1b8875f12e5fc0403d4e048add6781eb7ff Mon Sep 17 00:00:00 2001 From: Miles Sabin Date: Tue, 28 Jul 2009 14:55:35 +0000 Subject: 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. --- src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3