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

144 lines
3.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 3,
"end": 69,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 3,
"end": 69,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 7,
"end": 20,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 7,
"end": 16,
"ctxt": 0
},
"value": "selection",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 19,
"end": 20,
"ctxt": 0
},
"value": "a",
"optional": false
},
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 26,
"end": 38,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 26,
"end": 34,
"ctxt": 0
},
"value": "position",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 43,
"end": 52,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 43,
"end": 48,
"ctxt": 0
},
"value": "model",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": "c",
"optional": false
},
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 57,
"end": 68,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 57,
"end": 64,
"ctxt": 0
},
"value": "support",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 67,
"end": 68,
"ctxt": 0
},
"value": "d",
"optional": false
},
"definite": false
}
]
}
],
"interpreter": null
}