Skip to content

Commit 5add9b7

Browse files
committed
Homogenize TASTy printer formatting
1 parent 1f3af47 commit 5add9b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,11 @@ class TastyPrinter(bytes: Array[Byte]) {
256256

257257
def unpickle(reader: TastyReader, tastyName: NameTable): String = {
258258
import reader.*
259-
sb.append(s" ${reader.endAddr.index - reader.currentAddr.index}")
260259
val attributes = new AttributeUnpickler(reader).attributes
261-
sb.append(s" attributes bytes:\n")
260+
sb.append(s"Attributes (${reader.endAddr.index - reader.startAddr.index} bytes, starting from $base):\n")
262261

263262
for tag <- attributes.booleanTags do
264-
sb.append(" ").append(attributeTagToString(tag)).append("\n")
263+
sb.append(" ").append(attributeTagToString(tag)).append("\n")
265264

266265
sb.result
267266
}

0 commit comments

Comments
 (0)