-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Fix TASTy source position printer #19105
Fix TASTy source position printer #19105
Conversation
* Homogenize the formatting of section names and sizes * Homogenize indentation across sections * Add TASTy header section * Add Names section size
603196b
to
324f1d7
Compare
Now it properly shows that the sources form the position section are references in the name table. This includes the coloring of the indices and referenced names. ```diff source paths: - 0: t/Test.scala + 0: 21 [t/Test.scala] ```
324f1d7
to
931eae4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice change! I tried locally
sb.append(treeStr("%10d: ".format(addr.index))) | ||
sb.append(path) | ||
for ((addr, nameRef) <- sortedPath) { | ||
sb.append(treeStr("%6d: ".format(addr.index))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolasstucki actually this :
should not be highlighted as anything, small thing but it is inconsistent with the rest of the document
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I will fix it in #19139
Backports #19105 to the LTS branch. PR submitted by the release tooling. [skip ci]
Based on #19106
Now it properly shows that the sources form the position section are references in the name table. This includes the coloring of the indices and referenced names.
Can be reproduced with