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

144 lines
3.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 4,
"end": 70,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 4,
"end": 70,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 8,
"end": 21,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 8,
"end": 17,
"ctxt": 0
},
"value": "selection",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"value": "a",
"optional": false
},
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 27,
"end": 39,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 27,
"end": 35,
"ctxt": 0
},
"value": "position",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 44,
"end": 53,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 44,
"end": 49,
"ctxt": 0
},
"value": "model",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"value": "c",
"optional": false
},
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 58,
"end": 69,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 58,
"end": 65,
"ctxt": 0
},
"value": "support",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"value": "d",
"optional": false
},
"definite": false
}
]
}
],
"interpreter": null
}