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

102 lines
2.4 KiB
JSON

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