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

Method _isGLB

chapter23/src/main/java/com/seaofnodes/simple/type/Type.java:460–470  ·  view source on GitHub ↗
(boolean mem)

Source from the content-addressed store, hash-verified

458 // ints and floats cannot widen.
459 public final boolean isGLB(boolean mem) { return recurClose(recurOpen()._isGLB(mem)); };
460 boolean _isGLB(boolean mem) {
461 return switch(_type) {
462 case TBOT -> false;
463 case TNIL -> false;
464 case TCTRL -> true;
465 case TXCTRL -> false;
466 case TXNIL -> false;
467 case TTOP -> false;
468 default -> throw Utils.TODO();
469 };
470 }
471 public final Type glb(boolean mem) {
472 if( isGLB(mem) ) return this;
473 Type glb = recurOpen()._glb(mem).recurClose();

Callers 2

isGLB2Method · 0.45
isGLBMethod · 0.45

Calls 1

TODOMethod · 0.95

Tested by

no test coverage detected