File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class TastyPrinter(bytes: Array[Byte])(implicit ctx: Context) {
23
23
def printNames (): Unit =
24
24
for ((name, idx) <- nameAtRef.contents.zipWithIndex) {
25
25
val index = nameColor(" %4d" .format(idx))
26
- sb.append(index + " : " + nameToString(name) + " \n " )
26
+ sb.append(index).append( " : " ).append( nameToString(name)).append( " \n " )
27
27
}
28
28
29
29
def printContents (): String = {
@@ -60,15 +60,15 @@ class TastyPrinter(bytes: Array[Byte])(implicit ctx: Context) {
60
60
val length = treeColor(" %5d" .format(index(currentAddr) - index(startAddr)))
61
61
sb.append(s " \n $length: " + " " * indent)
62
62
}
63
- def printNat () = sb.append(Yellow (" " + readNat()).show )
63
+ def printNat () = sb.append(treeColor (" " + readNat()))
64
64
def printName () = {
65
65
val idx = readNat()
66
66
sb.append(nameColor(" " + idx + " [" + nameRefToString(NameRef (idx)) + " ]" ))
67
67
}
68
68
def printTree (): Unit = {
69
69
newLine()
70
70
val tag = readByte()
71
- sb.append(" " );sb .append(astTagToString(tag))
71
+ sb.append(" " ).append(astTagToString(tag))
72
72
indent += 2
73
73
if (tag >= firstLengthTreeTag) {
74
74
val len = readNat()
Original file line number Diff line number Diff line change @@ -7,6 +7,5 @@ import dotty.tools.dotc.core.Phases.Phase
7
7
* on the CompilationUnits
8
8
*/
9
9
class PartialTASTYDecompiler extends TASTYDecompiler {
10
- override def phases : List [List [Phase ]] =
11
- frontendPhases ::: picklerPhases ::: transformPhases
10
+ override protected def backendPhases : List [List [Phase ]] = Nil
12
11
}
Original file line number Diff line number Diff line change 45
45
" .tasty"
46
46
],
47
47
"aliases" : [
48
- " Tasty "
48
+ " TASTy "
49
49
]
50
50
}
51
51
],
You can’t perform that action at this time.
0 commit comments