swc/crates/swc_ecma_parser/tests/tsc/objectBindingPatternKeywordIdentifiers05.json

97 lines
2.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 2,
"end": 24,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 2,
"end": 24,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 6,
"end": 24,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 6,
"end": 12,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 8,
"end": 10,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 8,
"end": 10,
"ctxt": 0
},
"value": "as",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 15,
"end": 24,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 17,
"end": 19,
"ctxt": 0
},
"value": "as",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}