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

Method tern

chapter23/src/main/java/com/seaofnodes/simple/type/Type.java:386–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

384 static boolean recurClose(boolean rez) { VISIT.clear(); return rez; }
385
386 final Type tern() {
387 if( _terned ) return this;
388 if( !BITS.get(_uid) ) {
389 BITS.set(_uid);
390 int nkids = nkids();
391 for( int i=0; i<nkids; i++ )
392 set(i,at(i).tern());
393 }
394 Type told = INTERN.get(this);
395 return told==null ? this : told.delayFree(this);
396 }
397
398 // Recursive dual. Visit all types recursively. Each visited type is
399 // *new*, and hits in the intern table, or not. If not, we recursively

Callers 1

recurCloseMethod · 0.45

Calls 5

setMethod · 0.95
nkidsMethod · 0.95
atMethod · 0.95
delayFreeMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected