mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
250 lines
7.3 KiB
JSON
250 lines
7.3 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 168,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 27,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Base",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 17,
|
|
"end": 31,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [],
|
|
"superClass": null,
|
|
"isAbstract": false,
|
|
"typeParams": null,
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"value": "C",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 32,
|
|
"end": 168,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "Constructor",
|
|
"span": {
|
|
"start": 59,
|
|
"end": 166,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 59,
|
|
"end": 70,
|
|
"ctxt": 0
|
|
},
|
|
"value": "constructor",
|
|
"optional": false
|
|
},
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 73,
|
|
"end": 166,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 91,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 90,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "Super",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 100,
|
|
"end": 160,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 104,
|
|
"end": 159,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 104,
|
|
"end": 107,
|
|
"ctxt": 0
|
|
},
|
|
"value": "obj",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 110,
|
|
"end": 159,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "MethodProperty",
|
|
"key": {
|
|
"type": "Computed",
|
|
"span": {
|
|
"start": 124,
|
|
"end": 143,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ParenthesisExpression",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 142,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "SequenceExpression",
|
|
"span": {
|
|
"start": 126,
|
|
"end": 141,
|
|
"ctxt": 0
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 126,
|
|
"end": 133,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "Super",
|
|
"span": {
|
|
"start": 126,
|
|
"end": 131,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 135,
|
|
"end": 141,
|
|
"ctxt": 0
|
|
},
|
|
"value": "prop",
|
|
"raw": "\"prop\""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 124,
|
|
"end": 149,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 146,
|
|
"end": 149,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"accessibility": null,
|
|
"isOptional": false
|
|
}
|
|
],
|
|
"superClass": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 48,
|
|
"end": 52,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Base",
|
|
"optional": false
|
|
},
|
|
"isAbstract": false,
|
|
"typeParams": null,
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|