mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
506 lines
13 KiB
JSON
506 lines
13 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 37,
|
|
"end": 280,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 43,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"value": "C1",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 37,
|
|
"end": 280,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "AutoAccessor",
|
|
"span": {
|
|
"start": 52,
|
|
"end": 69,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 63,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 62,
|
|
"end": 63,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
}
|
|
},
|
|
"value": null,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 63,
|
|
"end": 68,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 65,
|
|
"end": 68,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
},
|
|
"isStatic": false,
|
|
"decorators": [],
|
|
"accessibility": null
|
|
},
|
|
{
|
|
"type": "AutoAccessor",
|
|
"span": {
|
|
"start": 74,
|
|
"end": 90,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 85,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 84,
|
|
"end": 85,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 88,
|
|
"end": 89,
|
|
"ctxt": 0
|
|
},
|
|
"value": 1.0,
|
|
"raw": "1"
|
|
},
|
|
"typeAnnotation": null,
|
|
"isStatic": false,
|
|
"decorators": [],
|
|
"accessibility": null
|
|
},
|
|
{
|
|
"type": "AutoAccessor",
|
|
"span": {
|
|
"start": 95,
|
|
"end": 119,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 111,
|
|
"end": 113,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 112,
|
|
"end": 113,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
}
|
|
},
|
|
"value": null,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 113,
|
|
"end": 118,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 115,
|
|
"end": 118,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
},
|
|
"isStatic": true,
|
|
"decorators": [],
|
|
"accessibility": null
|
|
},
|
|
{
|
|
"type": "AutoAccessor",
|
|
"span": {
|
|
"start": 124,
|
|
"end": 147,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 140,
|
|
"end": 142,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 141,
|
|
"end": 142,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 145,
|
|
"end": 146,
|
|
"ctxt": 0
|
|
},
|
|
"value": 2.0,
|
|
"raw": "2"
|
|
},
|
|
"typeAnnotation": null,
|
|
"isStatic": true,
|
|
"decorators": [],
|
|
"accessibility": null
|
|
},
|
|
{
|
|
"type": "Constructor",
|
|
"span": {
|
|
"start": 153,
|
|
"end": 216,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 153,
|
|
"end": 164,
|
|
"ctxt": 0
|
|
},
|
|
"value": "constructor",
|
|
"optional": false
|
|
},
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 167,
|
|
"end": 216,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 177,
|
|
"end": 189,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"span": {
|
|
"start": 177,
|
|
"end": 188,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 177,
|
|
"end": 184,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 177,
|
|
"end": 181,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 182,
|
|
"end": 184,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 183,
|
|
"end": 184,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 187,
|
|
"end": 188,
|
|
"ctxt": 0
|
|
},
|
|
"value": 3.0,
|
|
"raw": "3"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 198,
|
|
"end": 210,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"span": {
|
|
"start": 198,
|
|
"end": 209,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 198,
|
|
"end": 205,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 198,
|
|
"end": 202,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 203,
|
|
"end": 205,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 204,
|
|
"end": 205,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 208,
|
|
"end": 209,
|
|
"ctxt": 0
|
|
},
|
|
"value": 4.0,
|
|
"raw": "4"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"accessibility": null,
|
|
"isOptional": false
|
|
},
|
|
{
|
|
"type": "StaticBlock",
|
|
"span": {
|
|
"start": 222,
|
|
"end": 278,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 229,
|
|
"end": 278,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 239,
|
|
"end": 251,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"span": {
|
|
"start": 239,
|
|
"end": 250,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 239,
|
|
"end": 246,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 239,
|
|
"end": 243,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 244,
|
|
"end": 246,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 245,
|
|
"end": 246,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 249,
|
|
"end": 250,
|
|
"ctxt": 0
|
|
},
|
|
"value": 5.0,
|
|
"raw": "5"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 260,
|
|
"end": 272,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"span": {
|
|
"start": 260,
|
|
"end": 271,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 260,
|
|
"end": 267,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 260,
|
|
"end": 264,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 265,
|
|
"end": 267,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 266,
|
|
"end": 267,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 270,
|
|
"end": 271,
|
|
"ctxt": 0
|
|
},
|
|
"value": 6.0,
|
|
"raw": "6"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"superClass": null,
|
|
"isAbstract": false,
|
|
"typeParams": null,
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|