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

Function findByPropertyName

lib/web/tern/infer.js:1796–1804  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1794 // EXPRESSION TYPE DETERMINATION
1795
1796 function findByPropertyName(name) {
1797 guessing = true;
1798 var found = objsWithProp(name);
1799 if (found) for (var i = 0; i < found.length; ++i) {
1800 var val = found[i].getProp(name);
1801 if (!val.isEmpty()) return val;
1802 }
1803 return ANull;
1804 }
1805
1806 function generatorResult(input, output) {
1807 var retObj = new Obj(true)

Callers 1

infer.jsFile · 0.85

Calls 2

objsWithPropFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected