(array, parent)
| 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. |
no test coverage detected