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

186 lines
3.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 135,
"end": 252,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 144,
"end": 145,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 146,
"end": 153,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "RestElement",
"span": {
"start": 146,
"end": 153,
"ctxt": 0
},
"rest": {
"start": 146,
"end": 149,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 149,
"end": 153,
"ctxt": 0
},
"value": "args",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 135,
"end": 174,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 155,
"end": 174,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 161,
"end": 172,
"ctxt": 0
},
"argument": {
"type": "NullLiteral",
"span": {
"start": 168,
"end": 172,
"ctxt": 0
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 192,
"end": 198,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 196,
"end": 197,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 196,
"end": 197,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 242,
"end": 245,
"ctxt": 0
},
"value": "cbf",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 246,
"end": 247,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 246,
"end": 247,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 233,
"end": 252,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 249,
"end": 252,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}