We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the following code:
object O { val xx, yy, zz = 1 }
ValDef tree for x has incorrect position, the position is an offset instead of range.
ValDef
x
Value definition positions:
xx - line-2,offset=17
yy - (21, 21, 31)
zz - (25, 25, 31)
Scala version: 2.13.15
I would expect the val def tree for xx to have a range position (17, 17, 31).
xx
(17, 17, 31)
The text was updated successfully, but these errors were encountered:
I'll take a look, as I'm sure this syntax came up during previous postdoc research into positions.
Relevant scala/scala#9355 and unmerged scala/scala#9111 and scala/scala#10740 (comment) may be my most recent memory of the issue.
Sorry, something went wrong.
som-snytt
No branches or pull requests
Reproduction steps
In the following code:
ValDef
tree forx
has incorrect position, the position is an offset instead of range.Value definition positions:
xx - line-2,offset=17
//offsetyy - (21, 21, 31)
//rangezz - (25, 25, 31)
//rangeScala version: 2.13.15
Problem
I would expect the val def tree for
xx
to have a range position(17, 17, 31)
.The text was updated successfully, but these errors were encountered: