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

Function c

lib/web/tern/infer.js:1994–2002  ·  view source on GitHub ↗
(node, st, override)

Source from the content-addressed store, hash-verified

1992 exports.parentNode = function(child, ast) {
1993 var stack = [];
1994 function c(node, st, override) {
1995 if (node.start <= child.start && node.end >= child.end) {
1996 var top = stack[stack.length - 1];
1997 if (node == child) throw {found: top};
1998 if (top != node) stack.push(node);
1999 walk.base[override || node.type](node, st, c);
2000 if (top != node) stack.pop();
2001 }
2002 }
2003 try {
2004 c(ast, null);
2005 } catch (e) {

Callers 12

infer.jsFile · 0.70
tern.jsFile · 0.70
doRequestFunction · 0.70
fetchAllFunction · 0.70
analyzeAllFunction · 0.70
skipThroughFunction · 0.70
walk.jsFile · 0.70
tern.jsFile · 0.50
getFileFunction · 0.50
hintFunction · 0.50
showContextInfoFunction · 0.50
worker.jsFile · 0.50

Calls 2

pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected