"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.simplifyAstStructure=void 0;const simplifyAstStructure=t=>{var e,l;i(t);for(const l of t.walk())i(l),(null===(e=null==l?void 0:l.children)||void 0===e?void 0:e.length)&&(0,exports.simplifyAstStructure)(l);function i(t){(null==t?void 0:t.location)&&delete t.location,void 0===t.tag&&delete t.tag}return"document"===t.type&&(null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.length)?null==t?void 0:t.children:t};exports.simplifyAstStructure=simplifyAstStructure;
//# sourceMappingURL=simplifyAstStructure.js.map