import { __exports as t } from "../../../../../../../../_virtual/toExpression.js";
import "../validators/generated/index.js";
import { __exports as e } from "../../../../../../../../_virtual/index35.js";
Object.defineProperty(t, "__esModule", {
  value: !0
});
t.default = void 0;
var r = e, i = p;
t.default = i;
function p(s) {
  if ((0, r.isExpressionStatement)(s) && (s = s.expression), (0, r.isExpression)(s))
    return s;
  if ((0, r.isClass)(s) ? s.type = "ClassExpression" : (0, r.isFunction)(s) && (s.type = "FunctionExpression"), !(0, r.isExpression)(s))
    throw new Error(`cannot turn ${s.type} to an expression`);
  return s;
}
//# sourceMappingURL=toExpression.js.map
