Skip to content

Commit f868929

Browse files
committed
Homogenize TASTy printer formatting
1 parent 1f3af47 commit f868929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ class TastyPrinter(bytes: Array[Byte]) {
258258
import reader.*
259259
sb.append(s" ${reader.endAddr.index - reader.currentAddr.index}")
260260
val attributes = new AttributeUnpickler(reader).attributes
261-
sb.append(s" attributes bytes:\n")
261+
sb.append(s"Attributes (${reader.endAddr.index - reader.startAddr.index} bytes, starting from $base):\n")
262262

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

266266
sb.result
267267
}

0 commit comments

Comments
 (0)