lib/optimiser.js
function findNestedBlocks (ast) {
  var tagged = [];
  traverse.traverse(ast, {
    enter: function (node, parent) {
      if (node.type === 'BlockStatement' && parent && parent.type === 'BlockStatement') {
        tagged.push([node, parent]);
      }
    }
  });
  return tagged;
}
function findNestedBlocks (ast) {
  var tagged = [];
  traverse.traverse(ast, {
    enter: function (node, parent) {
      if (node.type === 'BlockStatement' && parent && parent.type === 'BlockStatement') {
        tagged.push([node, parent]);
      }
    }
  });
  return tagged;
}
function findNestedBlocks ( ast ) { var tagged = [ ] ; traverse . traverse ( ast , { enter : function ( node , parent ) { if ( node . type === 'BlockStatement' && parent && parent . type === 'BlockStatement' ) { tagged . push ( [ node , parent ] ) ; } } } ) ; return tagged ; }
Find BlockStatements which are direct children of BlockStatements.
Find BlockStatements which are direct children of BlockStatements .