Skip to content

Commit

Permalink
Homogenize TASTy printer formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Dec 1, 2023
1 parent 1f3af47 commit f868929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ class TastyPrinter(bytes: Array[Byte]) {
import reader.*
sb.append(s" ${reader.endAddr.index - reader.currentAddr.index}")
val attributes = new AttributeUnpickler(reader).attributes
sb.append(s" attributes bytes:\n")
sb.append(s"Attributes (${reader.endAddr.index - reader.startAddr.index} bytes, starting from $base):\n")

for tag <- attributes.booleanTags do
sb.append(" ").append(attributeTagToString(tag)).append("\n")
sb.append(" ").append(attributeTagToString(tag)).append("\n")

sb.result
}
Expand Down

0 comments on commit f868929

Please sign in to comment.