Method
appendPrintId
(Node n, Map<Node, Integer> printIds, StringBuilder sb)
Source from the content-addressed store, hash-verified
| 1258 | } |
| 1259 | |
| 1260 | private static void appendPrintId(Node n, Map<Node, Integer> printIds, StringBuilder sb) { |
| 1261 | if (Token.printTrees) { |
| 1262 | if (n != null) { |
| 1263 | int id = printIds.getOrDefault(n, -1); |
| 1264 | sb.append('#'); |
| 1265 | if (id != -1) { |
| 1266 | sb.append(id + 1); |
| 1267 | } else { |
| 1268 | sb.append("<not_available>"); |
| 1269 | } |
| 1270 | } |
| 1271 | } |
| 1272 | } |
| 1273 | |
| 1274 | /** |
| 1275 | * @return the column of where a Node is defined in source. If the column is -1, it was never |
Tested by
no test coverage detected