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

Method gather

chapter22/src/main/java/com/seaofnodes/simple/type/Type.java:62–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 public static final Type NIL = new Type( TNIL ).intern(); // low null of all flavors
61 public static final Type XNIL = new Type( TXNIL ).intern(); // high or choice null
62 public static Type[] gather() {
63 ArrayList<Type> ts = new ArrayList<>();
64 ts.add(BOTTOM);
65 ts.add(CONTROL);
66 ts.add(NIL);
67 ts.add(XNIL);
68 TypeNil.gather(ts);
69 TypePtr.gather(ts);
70 TypeInteger.gather(ts);
71 TypeFloat.gather(ts);
72 TypeMemPtr.gather(ts);
73 TypeFunPtr.gather(ts);
74 TypeMem.gather(ts);
75 Field.gather(ts);
76 TypeStruct.gather(ts);
77 TypeTuple.gather(ts);
78 TypeRPC.gather(ts);
79 TypeConAry.gather(ts);
80 int sz = ts.size();
81 for( int i = 0; i < sz; i++ )
82 ts.add(ts.get(i).dual());
83 return ts.toArray(new Type[ts.size()]);
84 }
85
86 // Is high or on the lattice centerline.
87 public boolean isHigh () { return _type==TTOP || _type==TXCTRL || _type==TXNIL; }

Callers 1

testLatticeTheoryMethod · 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 1

testLatticeTheoryMethod · 0.76