MCPcopy Create free account
hub / github.com/mozilla/rhino / appendPrintId

Method appendPrintId

rhino/src/main/java/org/mozilla/javascript/Node.java:1260–1272  ·  view source on GitHub ↗
(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

Callers 1

toStringMethod · 0.95

Calls 1

appendMethod · 0.65

Tested by

no test coverage detected