lib/service/MicroTemplateService.js
function traverse(tokens, options) {
    const traverser = new Traverser()
    const nodes = Array.isArray(tokens) ? tokens : [tokens]
    for (const node of nodes) {
        traverser.traverse(node, options)
        if (traverser.isBroken()) {
            return
        }
    }
}
function traverse(tokens, options) {
    const traverser = new Traverser()
    const nodes = Array.isArray(tokens) ? tokens : [tokens]
    for (const node of nodes) {
        traverser.traverse(node, options)
        if (traverser.isBroken()) {
            return
        }
    }
}
function traverse ( tokens , options ) { const traverser = new Traverser ( ) const nodes = Array . isArray ( tokens ) ? tokens : [ tokens ] for ( const node of nodes ) { traverser . traverse ( node , options ) if ( traverser . isBroken ( ) ) { return } } }
Traverse the given tokens.
@param {Token|Token[]} tokens tokens.
@param {object} options The option object.
@returns {void}
Traverse the given tokens .