Skip to content

Commit

Permalink
Fix source path index color
Browse files Browse the repository at this point in the history
[Cherry-picked 9b1a32e]
  • Loading branch information
nicolasstucki authored and WojciechMazur committed Jun 25, 2024
1 parent 49ab723 commit 87f8a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ class TastyPrinter(bytes: Array[Byte]) {
sb.append(s"\n source paths:\n")
val sortedPath = sources.toSeq.sortBy(_._1.index)
for ((addr, nameRef) <- sortedPath) {
sb.append(treeStr("%6d: ".format(addr.index)))
sb.append(treeStr("%6d".format(addr.index)))
sb.append(": ")
sb.append(nameStr(s"${nameRef.index} [${tastyName(nameRef)}]"))
sb.append("\n")
}
Expand Down

0 comments on commit 87f8a95

Please sign in to comment.