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

96 lines
1.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 48,
"end": 107,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 65,
"end": 68,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 48,
"end": 77,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 70,
"end": 76,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 72,
"end": 76,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 95,
"end": 98,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 78,
"end": 107,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 100,
"end": 106,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 102,
"end": 106,
"ctxt": 0
},
"kind": "void"
}
}
}
],
"interpreter": null
}