function parseAst(source, opts = {}) {
  // Might not want to pass `opts` verbatim, but also might not matter!
  return parseBabel(source, {
    tokens: true,
    createParenthesizedExpressions: true,
    allowReturnOutsideFunction: opts.sourceType === 'script',
    ...opts,
  });
}
Adapter for parsing an AST.

@param {string} source - Source code
@param {ParseAstOptions} [opts] - Options for underlying parser
@internal