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

Method toStringTree

rhino/src/main/java/org/mozilla/javascript/Node.java:1218–1225  ·  view source on GitHub ↗
(ScriptNode treeTop)

Source from the content-addressed store, hash-verified

1216 }
1217
1218 public String toStringTree(ScriptNode treeTop) {
1219 if (Token.printTrees) {
1220 StringBuilder sb = new StringBuilder();
1221 toStringTreeHelper(treeTop, this, null, 0, sb);
1222 return sb.toString();
1223 }
1224 return null;
1225 }
1226
1227 private static void toStringTreeHelper(
1228 ScriptNode treeTop, Node n, Map<Node, Integer> printIds, int level, StringBuilder sb) {

Callers 4

compileMethod · 0.80
runFlowAnalyzesMethod · 0.80
compileToClassFileMethod · 0.80

Calls 2

toStringTreeHelperMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected