lib/service/MicroTemplateService.js
function traverseNodes(nodes, visitor) {
    const ne = new NodeEventGenerator(visitor)
    traverse(nodes, {
        enter(child) {
            ne.enterNode(child)
        },

        leave(child) {
            ne.leaveNode(child)
        },
    })
}
function traverseNodes(nodes, visitor) {
    const ne = new NodeEventGenerator(visitor)
    traverse(nodes, {
        enter(child) {
            ne.enterNode(child)
        },

        leave(child) {
            ne.leaveNode(child)
        },
    })
}
function traverseNodes ( nodes , visitor ) { const ne = new NodeEventGenerator ( visitor ) traverse ( nodes , { enter ( child ) { ne . enterNode ( child ) } , leave ( child ) { ne . leaveNode ( child ) } , } ) }
Traverse the given AST tree.
@param {object} nodes Root node to traverse.
@param {object} visitor Visitor.
@returns {void}
Traverse the given AST tree .