private void ensureArrowFunctionsHaveBlockBodies(NodeTraversal t, Node function) {
    Node body = function.getLastChild();
    if (!body.isBlock()) {
      body.detach();
      Node replacement = IR.block(IR.returnNode(body)).useSourceInfoIfMissingFromForTree(body);
      function.addChildToBack(replacement);
      t.reportCodeChange();
    }
  }
private void ensureArrowFunctionsHaveBlockBodies ( NodeTraversal t , Node function ) { Node body = function . getLastChild ( ) ; if ( ! body . isBlock ( ) ) { body . detach ( ) ; Node replacement = IR . block ( IR . returnNode ( body ) ) . useSourceInfoIfMissingFromForTree ( body ) ; function . addChildToBack ( replacement ) ; t . reportCodeChange ( ) ; } }
TODO(bradfordcsmith): This should be separated from this pass.