From 07fab88cee34e5f59cf88f0dc8e61f2b8817eb24 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 10 Jun 2011 16:27:55 +0000 Subject: Reverts r25036, "Altered the positioning of XML... Reverts r25036, "Altered the positioning of XML literal trees" because the IDE did not like it. No review. --- src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 1a0409d440..c7134ce91a 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1429,17 +1429,11 @@ self => */ def simpleExpr(): Tree = { var canApply = true - val start = in.offset val t = - if (isLiteral) atPos(start)(literal(false)) + if (isLiteral) atPos(in.offset)(literal(false)) else in.token match { case XMLSTART => - // Using setPos here because the generated tree has its position - // off by one and I'm not sure where to fix it. - // - // ^--- This was positioned at the a, not the < - val lit = xmlLiteral() - lit setPos r2p(start, start, in.offset) + xmlLiteral() case IDENTIFIER | BACKQUOTED_IDENT | THIS | SUPER => path(true, false) case USCORE => -- cgit v1.2.3