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

Method reset

chapter10/src/main/java/com/seaofnodes/simple/node/Node.java:587–592  ·  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

585 E x = pred.apply(this);
586 if( x != null ) return x;
587 for( Node def : _inputs ) if( def != null && (x = def._walk(pred)) != null ) return x;
588 for( Node use : _outputs ) if( use != null && (x = use._walk(pred)) != null ) return x;
589 return null;
590 }
591
592 /**
593 * Debugging utility to find a Node by index
594 */
595 public Node find(int nid) {

Callers 1

ParserMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected