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

Method dual

chapter09/src/main/java/com/seaofnodes/simple/type/Type.java:126–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }
125
126 public Type dual() {
127 return switch( _type ) {
128 case TBOT -> TOP;
129 case TTOP -> BOTTOM;
130 case TCTRL -> XCONTROL;
131 case TXCTRL -> CONTROL;
132 default -> throw Utils.TODO(); // Should not reach here
133 };
134 }
135
136 // ----------------------------------------------------------
137 @Override

Callers 1

joinMethod · 0.95

Calls 1

TODOMethod · 0.95

Tested by

no test coverage detected