src/language-js/print/statement.js/printStatementSequence
function printStatementSequence(path, options, print) {
  const bodyNode = path.getNode();
  const isClass = bodyNode.type === "ClassBody";

  const printed = path
    .map((statementPath, index) =>
      printStatement(
        {
          path,
          index,
          bodyNode,
          isClass,
        },
        options,
        print
      )
    )
    .filter(Boolean);

  return join(hardline, printed);
}