MCPcopy
hub / github.com/jquery/esprima / collect

Function collect

test/api-tests.js:642–644  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

640 it('should receive all the nodes', function () {
641 var list = [];
642 function collect(node) {
643 list.push(node.type);
644 }
645 esprima.parse('/* universe */ answer = 42', {}, collect);
646
647 assert.deepEqual(list.length, 5);

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…