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

143 lines
2.9 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 144,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 34,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 22,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 14,
"ctxt": 0
},
"value": "interface",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 14,
"end": 22,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 16,
"end": 22,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 24,
"end": 33,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"value": "I",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 25,
"end": 33,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 27,
"end": 33,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 36,
"end": 45,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 36,
"end": 45,
"ctxt": 0
},
"value": "interface",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"value": "I",
"optional": false
}
},
{
"type": "BlockStatement",
"span": {
"start": 142,
"end": 144,
"ctxt": 0
},
"stmts": []
}
],
"interpreter": null
}