diff 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
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLStatementNode.java	Mon Mar 30 22:52:03 2015 +0200
+++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLStatementNode.java	Mon Mar 30 22:52:03 2015 +0200
@@ -64,7 +64,7 @@
      * @param node the node to format.
      * @return a formatted source section string
      */
-    private static String formatSourceSection(Node node) {
+    public static String formatSourceSection(Node node) {
         if (node == null) {
             return "<unknown>";
         }