Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java @ 11850:e68922869732
Truffle: minor legibility improvement in NodeUtil.printSourceAttributionTree()
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 01 Oct 2013 17:26:56 -0700 |
parents | 099af41815ea |
children | 873da100d113 |
comparison
equal
deleted
inserted
replaced
11849:73a2f5fc8625 | 11850:e68922869732 |
---|---|
661 p.println("AST source attribution:"); | 661 p.println("AST source attribution:"); |
662 } | 662 } |
663 } | 663 } |
664 final StringBuilder sb = new StringBuilder(); | 664 final StringBuilder sb = new StringBuilder(); |
665 for (int i = 0; i < level; i++) { | 665 for (int i = 0; i < level; i++) { |
666 sb.append(" "); | 666 sb.append("| "); |
667 } | 667 } |
668 | 668 |
669 if (parent != null) { | 669 if (parent != null) { |
670 String childName = ""; | 670 String childName = ""; |
671 NodeField[] fields = NodeClass.get(parent.getClass()).fields; | 671 NodeField[] fields = NodeClass.get(parent.getClass()).fields; |