MCPcopy
hub / github.com/jamiebuilds/the-super-tiny-compiler / traverseArray

Function traverseArray

the-super-tiny-compiler.js:734–738  ·  view source on GitHub ↗
(array, parent)

Source from the content-addressed store, hash-verified

732 // A `traverseArray` function that will allow us to iterate over an array and
733 // call the next function that we will define: `traverseNode`.
734 function traverseArray(array, parent) {
735 array.forEach(child => {
736 traverseNode(child, parent);
737 });
738 }
739
740 // `traverseNode` will accept a `node` and its `parent` node. So that it can
741 // pass both to our visitor methods.

Callers 1

traverseNodeFunction · 0.85

Calls 1

traverseNodeFunction · 0.85

Tested by

no test coverage detected