(int depth)
| 101 | } |
| 102 | |
| 103 | @Override |
| 104 | public String toSource(int depth) { |
| 105 | StringBuilder sb = new StringBuilder(); |
| 106 | for (Node node : this) { |
| 107 | sb.append(((AstNode) node).toSource(depth)); |
| 108 | if (node.getType() == Token.COMMENT) { |
| 109 | sb.append("\n"); |
| 110 | } |
| 111 | } |
| 112 | return sb.toString(); |
| 113 | } |
| 114 | |
| 115 | /** A debug-printer that includes comments (at the end). */ |
| 116 | @Override |