MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / reset

Method reset

chapter18/src/main/java/com/seaofnodes/simple/node/Node.java:622–627  ·  view source on GitHub ↗

Used to allow repeating tests in the same JVM. This just resets the Node unique id generator, and is done as part of making a new Parser.

()

Source from the content-addressed store, hash-verified

620 * Node unique id generator, and is done as part of making a new Parser.
621 */
622 public static void reset() {
623 UNIQUE_ID = 1;
624 _disablePeephole=false;
625 GVN.clear();
626 ITER_CNT = ITER_NOP_CNT = 0;
627 }
628
629
630 // Utility to walk the entire graph applying a function; return the first

Callers 1

ParserMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected