Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java @ 21469:286aef83a9a7
Replacing PrintStream with PrintWriter in the simple language
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Fri, 22 May 2015 18:12:01 +0200 |
parents | 4b12d5355811 |
children | 45ed86c4d127 |
comparison
equal
deleted
inserted
replaced
21468:99942eac9c6d | 21469:286aef83a9a7 |
---|---|
559 | 559 |
560 public static void printSourceAttributionTree(OutputStream out, Node node) { | 560 public static void printSourceAttributionTree(OutputStream out, Node node) { |
561 printSourceAttributionTree(new PrintWriter(out), null, node, 1); | 561 printSourceAttributionTree(new PrintWriter(out), null, node, 1); |
562 } | 562 } |
563 | 563 |
564 public static void printSourceAttributionTree(PrintWriter out, Node node) { | |
565 printSourceAttributionTree(out, null, node, 1); | |
566 } | |
567 | |
564 private static void printSourceAttributionTree(PrintWriter p, Node parent, Node node, int level) { | 568 private static void printSourceAttributionTree(PrintWriter p, Node parent, Node node, int level) { |
565 if (node == null) { | 569 if (node == null) { |
566 return; | 570 return; |
567 } | 571 } |
568 if (parent == null) { | 572 if (parent == null) { |