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

Method gather

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

Source from the content-addressed store, hash-verified

93 public static final Type NIL = new Type( TNIL ).intern(); // low null of all flavors
94 public static final Type XNIL = NIL.dual();
95 public static Type[] gather() {
96 ArrayList<Type> ts = new ArrayList<>();
97 ts.add(BOTTOM);
98 ts.add(CONTROL);
99 ts.add(NIL);
100 TypeNil.gather(ts);
101 TypePtr.gather(ts);
102 TypeInteger.gather(ts);
103 TypeFloat.gather(ts);
104 TypeMemPtr.gather(ts);
105 TypeFunPtr.gather(ts);
106 TypeMem.gather(ts);
107 Field.gather(ts);
108 TypeStruct.gather(ts);
109 TypeTuple.gather(ts);
110 TypeRPC.gather(ts);
111 TypeConAry.gather(ts);
112
113 int sz = ts.size();
114 for( int i = 0; i < sz; i++ )
115 ts.add(ts.get(i).dual());
116 return ts.toArray(new Type[ts.size()]);
117 }
118
119 // Is high or on the lattice centerline.
120 public boolean isHigh () { return _type==TTOP || _type==TXCTRL || _type==TXNIL; }

Callers 2

testLatticeTheoryMethod · 0.95
testGLBMethod · 0.95

Calls 15

gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95

Tested by 2

testLatticeTheoryMethod · 0.76
testGLBMethod · 0.76