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

89 lines
1.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 30,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 17,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 16,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 11,
"ctxt": 0
},
"value": "module",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 14,
"end": 16,
"ctxt": 0
},
"value": 10.0
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 18,
"end": 30,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 18,
"end": 30,
"ctxt": 0
},
"operator": "in",
"left": {
"type": "Identifier",
"span": {
"start": 18,
"end": 24,
"ctxt": 0
},
"value": "module",
"optional": false
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 28,
"end": 30,
"ctxt": 0
},
"properties": []
}
}
}
],
"interpreter": null
}