(name, args, retType, generator)
| 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; |
no test coverage detected