Skip to content

Commit 87f8a95

Browse files
nicolasstuckiWojciechMazur
authored andcommitted
Fix source path index color
[Cherry-picked 9b1a32e]
1 parent 49ab723 commit 87f8a95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ class TastyPrinter(bytes: Array[Byte]) {
201201
sb.append(s"\n source paths:\n")
202202
val sortedPath = sources.toSeq.sortBy(_._1.index)
203203
for ((addr, nameRef) <- sortedPath) {
204-
sb.append(treeStr("%6d: ".format(addr.index)))
204+
sb.append(treeStr("%6d".format(addr.index)))
205+
sb.append(": ")
205206
sb.append(nameStr(s"${nameRef.index} [${tastyName(nameRef)}]"))
206207
sb.append("\n")
207208
}

0 commit comments

Comments
 (0)