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

230 lines
5.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 74,
"end": 186,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 74,
"end": 115,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 84,
"end": 113,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 84,
"end": 95,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 98,
"end": 113,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 100,
"end": 111,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 100,
"end": 110,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 100,
"end": 106,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 100,
"end": 104,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 105,
"end": 106,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 109,
"end": 110,
"ctxt": 0
},
"value": 0.0
}
}
}
]
},
"accessibility": null,
"isOptional": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 142,
"end": 143,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 136,
"end": 186,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 150,
"end": 184,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 150,
"end": 151,
"ctxt": 0
},
"value": "m",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 150,
"end": 184,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 154,
"end": 184,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 164,
"end": 178,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 171,
"end": 177,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 171,
"end": 175,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 176,
"end": 177,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}