comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLStatementNode.java @ 20096:3844fb65016c

SL: repeating node should implement SLStatementNode for a proper toString implementation.
author Christian Humer <christian.humer@gmail.com>
date Mon, 30 Mar 2015 22:52:03 +0200
parents d1c1cd2530d7
children
comparison
equal deleted inserted replaced
20095:c7c799f40c1e 20096:3844fb65016c
62 * required append a <code>'~'</code> at the end. 62 * required append a <code>'~'</code> at the end.
63 * 63 *
64 * @param node the node to format. 64 * @param node the node to format.
65 * @return a formatted source section string 65 * @return a formatted source section string
66 */ 66 */
67 private static String formatSourceSection(Node node) { 67 public static String formatSourceSection(Node node) {
68 if (node == null) { 68 if (node == null) {
69 return "<unknown>"; 69 return "<unknown>";
70 } 70 }
71 SourceSection section = node.getSourceSection(); 71 SourceSection section = node.getSourceSection();
72 boolean estimated = false; 72 boolean estimated = false;