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

Method swap12

chapter09/src/main/java/com/seaofnodes/simple/node/Node.java:561–567  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559 private <E> E _walk( Function<Node,E> pred ) {
560 if( WVISIT.get(_nid) ) return null; // Been there, done that
561 WVISIT.set(_nid);
562 E x = pred.apply(this);
563 if( x != null ) return x;
564 for( Node def : _inputs ) if( def != null && (x = def._walk(pred)) != null ) return x;
565 for( Node use : _outputs ) if( use != null && (x = use._walk(pred)) != null ) return x;
566 return null;
567 }
568
569 /**
570 * Debugging utility to find a Node by index

Callers 2

idealizeMethod · 0.45
idealizeMethod · 0.45

Calls 3

unlockMethod · 0.95
inMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected