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

123 lines
3.0 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 55,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 55,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 55,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 8,
"ctxt": 0
},
"value": "big",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 11,
"end": 55,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 16,
"end": 21,
"ctxt": 0
},
"value": "break",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 30,
"end": 35,
"ctxt": 0
},
"value": "super",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 44,
"end": 49,
"ctxt": 0
},
"value": "const",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}