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

158 lines
3.3 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 87,
"end": 152,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 87,
"end": 104,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 93,
"end": 104,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 93,
"end": 100,
"ctxt": 0
},
"value": "orbitol",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 103,
"end": 104,
"ctxt": 0
},
"value": 1.0
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 105,
"end": 128,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 109,
"end": 128,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 109,
"end": 116,
"ctxt": 0
},
"value": "orbitol",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 119,
"end": 128,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "NumericLiteral",
"span": {
"start": 119,
"end": 120,
"ctxt": 0
},
"value": 1.0
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 123,
"end": 128,
"ctxt": 0
},
"value": false
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 129,
"end": 152,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 129,
"end": 152,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 129,
"end": 150,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 129,
"end": 136,
"ctxt": 0
},
"value": "orbitol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 137,
"end": 150,
"ctxt": 0
},
"value": "toExponential",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}