MCPcopy Create free account
hub / github.com/RubyLouvre/anu / predicate

Function predicate

test/babel.js:56838–56851  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

56836 }
56837
56838 function predicate(node) {
56839 t.assertNode(node);
56840
56841 var meta = m(node);
56842 if (hasOwn.call(meta, propertyName)) return meta[propertyName];
56843
56844 // Certain types are "opaque," which means they have no side
56845 // effects or leaps and we don't care about their subexpressions.
56846 if (hasOwn.call(opaqueTypes, node.type)) return meta[propertyName] = false;
56847
56848 if (hasOwn.call(knownTypes, node.type)) return meta[propertyName] = true;
56849
56850 return meta[propertyName] = onlyChildren(node);
56851 }
56852
56853 predicate.onlyChildren = onlyChildren;
56854

Callers 5

baseFindIndexFunction · 0.85
arrayFilterFunction · 0.85
arraySomeFunction · 0.85
baseFlattenFunction · 0.85
checkFunction · 0.85

Calls 2

mFunction · 0.85
onlyChildrenFunction · 0.85

Tested by

no test coverage detected