mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
274 lines
6.5 KiB
JSON
274 lines
6.5 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 114,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 27,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"value": "C",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 21,
|
|
"end": 95,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "ClassProperty",
|
|
"span": {
|
|
"start": 35,
|
|
"end": 64,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 43,
|
|
"ctxt": 0
|
|
},
|
|
"value": "s",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 63,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "NewExpression",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 53,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 50,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"value": "C",
|
|
"optional": false
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
"property": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 54,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 55,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"value": "method",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
"typeAnnotation": null,
|
|
"isStatic": true,
|
|
"decorators": [],
|
|
"accessibility": null,
|
|
"isAbstract": false,
|
|
"isOptional": false,
|
|
"isOverride": false,
|
|
"readonly": false,
|
|
"declare": false,
|
|
"definite": false
|
|
},
|
|
{
|
|
"type": "PrivateMethod",
|
|
"span": {
|
|
"start": 69,
|
|
"end": 93,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 69,
|
|
"end": 76,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 70,
|
|
"end": 76,
|
|
"ctxt": 0
|
|
},
|
|
"value": "method",
|
|
"optional": false
|
|
}
|
|
},
|
|
"function": {
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 69,
|
|
"end": 93,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 79,
|
|
"end": 93,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"span": {
|
|
"start": 81,
|
|
"end": 91,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 88,
|
|
"end": 90,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0,
|
|
"raw": "42"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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": []
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 97,
|
|
"end": 114,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 97,
|
|
"end": 113,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 97,
|
|
"end": 108,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 97,
|
|
"end": 104,
|
|
"ctxt": 0
|
|
},
|
|
"value": "console",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 108,
|
|
"ctxt": 0
|
|
},
|
|
"value": "log",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 109,
|
|
"end": 112,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 109,
|
|
"end": 110,
|
|
"ctxt": 0
|
|
},
|
|
"value": "C",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 111,
|
|
"end": 112,
|
|
"ctxt": 0
|
|
},
|
|
"value": "s",
|
|
"optional": false
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"typeArguments": null
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|