packages/then-pug/lib/pug-code-gen-module.js
function(block){
    var escapePrettyMode = this.escapePrettyMode;
    var pp = this.pp;
    var ast = [];
    // Pretty print multi-line text
    if (pp && block.nodes.length > 1 && !escapePrettyMode &&
        block.nodes[0].type === 'Text' && block.nodes[1].type === 'Text' ) {
      push.apply(ast, this.prettyIndent(1, true));
    }
    for (var i = 0; i < block.nodes.length; ++i) {
      // Pretty print text
      if (pp && i > 0 && !escapePrettyMode &&
          block.nodes[i].type === 'Text' && block.nodes[i-1].type === 'Text' &&
          /\n$/.test(block.nodes[i - 1].val)) {
        push.apply(ast,this.prettyIndent(1, false));
      }
      push.apply(ast, this.visit(block.nodes[i], block));
    }
    return ast;
  }
function(block){
    var escapePrettyMode = this.escapePrettyMode;
    var pp = this.pp;
    var ast = [];
    // Pretty print multi-line text
    if (pp && block.nodes.length > 1 && !escapePrettyMode &&
        block.nodes[0].type === 'Text' && block.nodes[1].type === 'Text' ) {
      push.apply(ast, this.prettyIndent(1, true));
    }
    for (var i = 0; i < block.nodes.length; ++i) {
      // Pretty print text
      if (pp && i > 0 && !escapePrettyMode &&
          block.nodes[i].type === 'Text' && block.nodes[i-1].type === 'Text' &&
          /\n$/.test(block.nodes[i - 1].val)) {
        push.apply(ast,this.prettyIndent(1, false));
      }
      push.apply(ast, this.visit(block.nodes[i], block));
    }
    return ast;
  }
function ( block ) { var escapePrettyMode = this . escapePrettyMode ; var pp = this . pp ; var ast = [ ] ; // Pretty print multi-line text if ( pp && block . nodes . length > 1 && ! escapePrettyMode && block . nodes [ 0 ] . type === 'Text' && block . nodes [ 1 ] . type === 'Text' ) { push . apply ( ast , this . prettyIndent ( 1 , true ) ) ; } for ( var i = 0 ; i < block . nodes . length ; ++ i ) { // Pretty print text if ( pp && i > 0 && ! escapePrettyMode && block . nodes [ i ] . type === 'Text' && block . nodes [ i - 1 ] . type === 'Text' && / \n$ / . test ( block . nodes [ i - 1 ] . val ) ) { push . apply ( ast , this . prettyIndent ( 1 , false ) ) ; } push . apply ( ast , this . visit ( block . nodes [ i ] , block ) ) ; } return ast ; }
Visit all nodes in `block`.

@param {Block} block
@api public
Visit all nodes in block .