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

155 lines
3.1 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 2,
"end": 135,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 2,
"end": 21,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 6,
"end": 20,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 6,
"end": 12,
"ctxt": 0
},
"value": "module",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 12,
"end": 20,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 14,
"end": 20,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 22,
"end": 36,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 26,
"end": 35,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 27,
"end": 35,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 29,
"end": 35,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 38,
"end": 44,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 38,
"end": 44,
"ctxt": 0
},
"value": "module",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 89,
"end": 90,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 89,
"end": 90,
"ctxt": 0
},
"value": "m",
"optional": false
}
},
{
"type": "BlockStatement",
"span": {
"start": 132,
"end": 135,
"ctxt": 0
},
"stmts": []
}
],
"interpreter": null
}