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

173 lines
3.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 2,
"end": 213,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 2,
"end": 35,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 6,
"end": 23,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 6,
"end": 15,
"ctxt": 0
},
"value": "interface",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 15,
"end": 23,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 17,
"end": 23,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 25,
"end": 34,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"value": "I",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 26,
"end": 34,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 28,
"end": 34,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 37,
"end": 213,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": "n",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 49,
"end": 213,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"value": "interface",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"value": "I",
"optional": false
}
},
{
"type": "BlockStatement",
"span": {
"start": 169,
"end": 171,
"ctxt": 0
},
"stmts": []
}
]
}
}
],
"interpreter": null
}