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

96 lines
2.2 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 23,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 23,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 23,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 5,
"end": 11,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 7,
"end": 9,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 7,
"end": 9,
"ctxt": 0
},
"value": "as",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 14,
"end": 23,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 16,
"end": 18,
"ctxt": 0
},
"value": "as",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"value": 1.0
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}