This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Do we have tests for range positions?

2 replies
gkossakowski
Joined: 2010-03-11,
User offline. Last seen 33 weeks 5 days ago.

Hi,

I tried to find out if we have tests for range positions support in
compiler. I found tests/files/positions but they seem to be not
updated for a while and it's not clear what they do.

Ideally, I'd like to feed a piece of code to compiler and check
positions attached to trees.

adriaanm
Joined: 2010-02-08,
User offline. Last seen 31 weeks 4 days ago.
Re: Do we have tests for range positions?
I think -Yrangepos validates positions of the compiled program

On Fri, Dec 2, 2011 at 9:46 AM, Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> wrote:
Hi,

I tried to find out if we have tests for range positions support in
compiler. I found tests/files/positions but they seem to be not
updated for a while and it's not clear what they do.

Ideally, I'd like to feed a piece of code to compiler and check
positions attached to trees.

--
Grzegorz Kossakowski

Hubert Plociniczak
Joined: 2009-09-12,
User offline. Last seen 42 years 45 weeks ago.
Re: Do we have tests for range positions?
-Yrangepos validates positions and was run on the current compiler (at least before the git move).
You cannot really give .check file with expected tree and its positions but I guess it shouldn't be so hard to add if you have time.

hubert


On 12/02/2011 09:52 AM, Adriaan Moors wrote:
CAJQegsi_hEqv6V_mi3sUDyBwX0NZYxpMvuaUyjTgrpE885KdKw [at] mail [dot] gmail [dot] com" type="cite"> I think -Yrangepos validates positions of the compiled program

On Fri, Dec 2, 2011 at 9:46 AM, Grzegorz Kossakowski <grzegorz [dot] kossakowski [at] gmail [dot] com" rel="nofollow">grzegorz.kossakowski@gmail.com> wrote:
Hi,

I tried to find out if we have tests for range positions support in
compiler. I found tests/files/positions but they seem to be not
updated for a while and it's not clear what they do.

Ideally, I'd like to feed a piece of code to compiler and check
positions attached to trees.

--
Grzegorz Kossakowski


Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland