swc/crates/swc_ecma_parser/tests/tsc/plainJSRedeclare3.json
2022-02-04 17:08:38 +09:00

158 lines
3.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 88,
"end": 153,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 88,
"end": 105,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 94,
"end": 105,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 94,
"end": 101,
"ctxt": 0
},
"value": "orbitol",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 104,
"end": 105,
"ctxt": 0
},
"value": 1.0
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 106,
"end": 129,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 110,
"end": 129,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 110,
"end": 117,
"ctxt": 0
},
"value": "orbitol",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 120,
"end": 129,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "NumericLiteral",
"span": {
"start": 120,
"end": 121,
"ctxt": 0
},
"value": 1.0
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 124,
"end": 129,
"ctxt": 0
},
"value": false
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 130,
"end": 153,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 130,
"end": 153,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 130,
"end": 151,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 130,
"end": 137,
"ctxt": 0
},
"value": "orbitol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 138,
"end": 151,
"ctxt": 0
},
"value": "toExponential",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}