Permalink
Browse files

-Yshow-trees-compact respects other options

The aforementioned tree printer now respects other tree printing
options such as -uniqid and -Xprint-types.

This helps debugging reify, which uses `nodePrinters`, not `showRaw`
to print its trees, because back then `showRaw` didn't exist yet.
  • Loading branch information...
1 parent 3b68b45 commit af3b03bf33ac5ed556b51a213d6b466d01109969 @xeno-by xeno-by committed Nov 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/compiler/scala/tools/nsc/ast/NodePrinters.scala
View
2 src/compiler/scala/tools/nsc/ast/NodePrinters.scala
@@ -102,7 +102,7 @@ abstract class NodePrinters {
buf.clear()
if (settings.XshowtreesStringified.value) buf.append(tree.toString + EOL)
if (settings.XshowtreesCompact.value) {
- buf.append(showRaw(tree))
+ buf.append(showRaw(tree, printIds = settings.uniqid.value, printTypes = settings.printtypes.value))
} else {
level = 0
traverse(tree)

0 comments on commit af3b03b

Please sign in to comment.