swc/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters4.json
Donny/강동윤 3958f1792c
refactor(es/ast): Remove unused fields (#7518)
**Related issue:**

 - Closes #7347.
 - Closes #7487.
2023-06-12 08:02:34 +00:00

123 lines
2.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 125,
"end": 175,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 134,
"end": 137,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 138,
"end": 152,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 138,
"end": 152,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 138,
"end": 147,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 140,
"end": 145,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 140,
"end": 145,
"ctxt": 0
},
"value": "cause",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 150,
"end": 152,
"ctxt": 0
},
"properties": []
}
}
}
],
"decorators": [],
"span": {
"start": 125,
"end": 175,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 154,
"end": 175,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 160,
"end": 173,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 167,
"end": 172,
"ctxt": 0
},
"value": "cause",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}