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

289 lines
7.6 KiB
JSON

{
"type": "Module",
"span": {
"start": 502,
"end": 596,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 502,
"end": 596,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 518,
"end": 519,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 520,
"end": 521,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 520,
"end": 521,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 523,
"end": 524,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 523,
"end": 524,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 526,
"end": 527,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 526,
"end": 527,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 529,
"end": 534,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 529,
"end": 534,
"ctxt": 0
},
"value": "alpha",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 536,
"end": 540,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 536,
"end": 540,
"ctxt": 0
},
"value": "beta",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 542,
"end": 547,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 542,
"end": 547,
"ctxt": 0
},
"value": "gamma",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 509,
"end": 596,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 549,
"end": 596,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 555,
"end": 594,
"ctxt": 0
},
"argument": {
"type": "BinaryExpression",
"span": {
"start": 562,
"end": 594,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 562,
"end": 586,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 562,
"end": 579,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 562,
"end": 571,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 562,
"end": 567,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "Identifier",
"span": {
"start": 562,
"end": 563,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 566,
"end": 567,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 570,
"end": 571,
"ctxt": 0
},
"value": "z",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 574,
"end": 579,
"ctxt": 0
},
"value": "alpha",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 582,
"end": 586,
"ctxt": 0
},
"value": "beta",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 589,
"end": 594,
"ctxt": 0
},
"value": "gamma",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
}
],
"interpreter": null
}