packages/babel-generator/src/generators/statements.js
function getLastStatement(statement) {
  if (!t.isStatement(statement.body)) return statement;
  return getLastStatement(statement.body);
}
function getLastStatement(statement) {
  if (!t.isStatement(statement.body)) return statement;
  return getLastStatement(statement.body);
}
function getLastStatement ( statement ) { if ( ! t . isStatement ( statement . body ) ) return statement ; return getLastStatement ( statement . body ) ; }
Recursively get the last statement.
Recursively get the last statement .