parenthesized stays the compiler's, off the public tree

goodbye-acorn
Nic 2 weeks ago
parent b2d7d57b00
commit 969c6a9234

@ -140,6 +140,7 @@ function to_public_ast(source, ast, modern) {
if (modern) {
const clean = (/** @type {any} */ node) => {
delete node.metadata;
delete node.parenthesized;
};
ast.options?.attributes.forEach((attribute) => {

@ -47,6 +47,8 @@ export function convert(source, ast) {
_(node, { next }) {
// @ts-ignore
delete node.metadata;
// @ts-ignore
delete node.parenthesized;
next();
},
// @ts-ignore

@ -77,7 +77,6 @@
"column": 24
}
},
"parenthesized": true,
"object": {
"type": "Identifier",
"start": 36,
@ -188,7 +187,6 @@
"column": 24
}
},
"parenthesized": true,
"operator": "=",
"left": {
"type": "Identifier",
@ -331,7 +329,6 @@
"column": 27
}
},
"parenthesized": true,
"properties": [
{
"type": "Property",

@ -1005,7 +1005,6 @@
"column": 60
}
},
"parenthesized": true,
"id": null,
"expression": false,
"generator": false,

@ -25,7 +25,6 @@
"column": 9
}
},
"parenthesized": true,
"leadingComments": [
{
"type": "Block",

Loading…
Cancel
Save