import { __exports as r } from "../../../../../../../../_virtual/toStatement.js";
import "../validators/generated/index.js";
import { __require as l } from "../builders/generated/index.js";
import { __exports as m } from "../../../../../../../../_virtual/index35.js";
var s;
function S() {
  if (s)
    return r;
  s = 1, Object.defineProperty(r, "__esModule", {
    value: !0
  }), r.default = void 0;
  var a = m, n = l(), u = f;
  r.default = u;
  function f(e, o) {
    if ((0, a.isStatement)(e))
      return e;
    let i = !1, t;
    if ((0, a.isClass)(e))
      i = !0, t = "ClassDeclaration";
    else if ((0, a.isFunction)(e))
      i = !0, t = "FunctionDeclaration";
    else if ((0, a.isAssignmentExpression)(e))
      return (0, n.expressionStatement)(e);
    if (i && !e.id && (t = !1), !t) {
      if (o)
        return !1;
      throw new Error(`cannot turn ${e.type} to a statement`);
    }
    return e.type = t, e;
  }
  return r;
}
export {
  S as __require
};
//# sourceMappingURL=toStatement.js.map
