Skip to content
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

Homogenize TASTy printer formatting #19139

Merged

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki
Copy link
Contributor Author

@bishabosha This is a change that was in #19106 but not yet in #19105

@@ -258,10 +258,10 @@ class TastyPrinter(bytes: Array[Byte]) {
import reader.*
sb.append(s" ${reader.endAddr.index - reader.currentAddr.index}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be removed - currently it prints something like 2Attributes (2 bytes, starting from 602):

Suggested change
sb.append(s" ${reader.endAddr.index - reader.currentAddr.index}")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@nicolasstucki nicolasstucki force-pushed the fix-tasty-printer-attibute-section branch from f868929 to 5add9b7 Compare December 1, 2023 13:09
@nicolasstucki
Copy link
Contributor Author

@bishabosha I also added a small optimization that also simplifies the code.

@bishabosha
Copy link
Member

maybe you could add #19105 (comment) here

@nicolasstucki nicolasstucki merged commit 6bb23dd into scala:main Dec 1, 2023
17 checks passed
@nicolasstucki nicolasstucki deleted the fix-tasty-printer-attibute-section branch December 1, 2023 16:46
@Kordyjan Kordyjan added this to the 3.4.0 milestone Dec 20, 2023
WojciechMazur added a commit that referenced this pull request Jun 26, 2024
Backports #19139 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants