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

Method print

chapter02/src/main/java/com/seaofnodes/simple/node/Node.java:97–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 // This needs to happen before removing the old node's def->use edge as
96 // the new_def might get killed if the old node kills it recursively.
97 if( new_def != null )
98 new_def.addUse(this);
99 if( old_def != null && // If the old def exists, remove a def->use edge
100 old_def.delUse(this) ) // If we removed the last use, the old def is now dead
101 old_def.kill(); // Kill old def
102 // Set the new_def over the old (killed) edge

Callers 2

toStringMethod · 0.95
_print1Method · 0.45

Calls 2

_print0Method · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected