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

Function computedFunc

lib/web/tern/def.js:46–52  ·  view source on GitHub ↗
(name, args, retType, generator)

Source from the content-addressed store, hash-verified

44 }
45
46 function computedFunc(name, args, retType, generator) {
47 return function(self, cArgs) {
48 var realArgs = [];
49 for (var i = 0; i < args.length; i++) realArgs.push(unwrapType(args[i], self, cArgs));
50 return new infer.Fn(name, infer.ANull, realArgs, unwrapType(retType, self, cArgs), generator);
51 };
52 }
53 function computedUnion(types) {
54 return function(self, args) {
55 var union = new infer.AVal;

Callers 1

def.jsFile · 0.85

Calls 2

unwrapTypeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected