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

143 lines
2.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 2,
"end": 145,
"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": "ExpressionStatement",
"span": {
"start": 37,
"end": 46,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 37,
"end": 46,
"ctxt": 0
},
"value": "interface",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"value": "I",
"optional": false
}
},
{
"type": "BlockStatement",
"span": {
"start": 143,
"end": 145,
"ctxt": 0
},
"stmts": []
}
],
"interpreter": null
}