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

96 lines
1.8 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 47,
"end": 106,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 64,
"end": 67,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 47,
"end": 76,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 71,
"end": 75,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 94,
"end": 97,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 77,
"end": 106,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 99,
"end": 105,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 101,
"end": 105,
"ctxt": 0
},
"kind": "void"
}
}
}
],
"interpreter": null
}