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

Function extractProp

lib/web/tern/def.js:35–44  ·  view source on GitHub ↗
(type, prop)

Source from the content-addressed store, hash-verified

33 }
34
35 function extractProp(type, prop) {
36 if (prop == "!ret") {
37 if (type.retval) return type.retval;
38 var rv = new infer.AVal;
39 type.propagate(new infer.IsCallee(infer.ANull, [], null, rv));
40 return rv;
41 } else {
42 return type.getProp(prop);
43 }
44 }
45
46 function computedFunc(name, args, retType, generator) {
47 return function(self, cArgs) {

Callers 1

def.jsFile · 0.85

Calls 1

propagateMethod · 0.80

Tested by

no test coverage detected