MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / computedUnion

Function computedUnion

lib/web/tern/def.js:53–60  ·  view source on GitHub ↗
(types)

Source from the content-addressed store, hash-verified

51 };
52 }
53 function computedUnion(types) {
54 return function(self, args) {
55 var union = new infer.AVal;
56 for (var i = 0; i < types.length; i++) unwrapType(types[i], self, args).propagate(union);
57 union.maxWeight = 1e5;
58 return union;
59 };
60 }
61 function computedArray(inner) {
62 return function(self, args) {
63 return new infer.Arr(inner(self, args));

Callers 1

def.jsFile · 0.85

Calls 2

unwrapTypeFunction · 0.85
propagateMethod · 0.80

Tested by

no test coverage detected