Skip to content

Commit 6551b53

Browse files
Fix rebase
1 parent 616afec commit 6551b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/decompiler/DecompilationPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ class DecompilationPrinter extends Phase {
3636
}
3737

3838
private def printToOutput(out: PrintStream)(implicit ctx: Context): Unit = {
39+
val unit = ctx.compilationUnit
3940
if (ctx.settings.printTasty.value) {
4041
new TastyPrinter(unit.pickled.head._2).printContents()
4142
} else {
42-
val unit = ctx.compilationUnit
4343
out.println(s"/** Decompiled from $unit */")
4444
out.print(TastyImpl.showSourceCode.showTree(unit.tpdTree)(ctx))
4545
}

0 commit comments

Comments
 (0)