MCPcopy
hub / github.com/ternjs/tern / c

Function c

lib/infer.js:2078–2086  ·  view source on GitHub ↗
(node, st, override)

Source from the content-addressed store, hash-verified

2076 exports.parentNode = function(child, ast) {
2077 var stack = [];
2078 function c(node, st, override) {
2079 if (node.start <= child.start && node.end >= child.end) {
2080 var top = stack[stack.length - 1];
2081 if (node == child) throw {found: top};
2082 if (top != node) stack.push(node);
2083 walk.base[override || node.type](node, st, c);
2084 if (top != node) stack.pop();
2085 }
2086 }
2087 try {
2088 c(ast, null);
2089 } catch (e) {

Callers 10

infer.jsFile · 0.85
startServerFunction · 0.85
tern.jsFile · 0.85
doRequestFunction · 0.85
fetchAllFunction · 0.85
analyzeAllFunction · 0.85
loadFunction · 0.85
innerFunction · 0.85
loadDefsFunction · 0.85
initProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected