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

124 lines
2.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 71,
"end": 111,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 71,
"end": 86,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 75,
"end": 85,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 75,
"end": 80,
"ctxt": 0
},
"value": "Route",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 80,
"end": 85,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 82,
"end": 85,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 87,
"end": 111,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 91,
"end": 110,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 91,
"end": 98,
"ctxt": 0
},
"value": "routes1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 101,
"end": 110,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 102,
"end": 107,
"ctxt": 0
},
"value": "Route",
"optional": false
},
"span": {
"start": 101,
"end": 110,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
}
],
"interpreter": null
}