swc/crates/swc_ecma_parser/tests/tsc/classStaticBlock15.json
2022-02-04 17:08:38 +09:00

369 lines
8.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 69,
"end": 239,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 69,
"end": 79,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 73,
"end": 78,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 73,
"end": 78,
"ctxt": 0
},
"value": "_C__1",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 87,
"end": 88,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 81,
"end": 219,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 93,
"end": 108,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 100,
"end": 103,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 101,
"end": 103,
"ctxt": 0
},
"value": "_1",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 106,
"end": 107,
"ctxt": 0
},
"value": 1.0
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 111,
"end": 126,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 118,
"end": 121,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 119,
"end": 121,
"ctxt": 0
},
"value": "_3",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 124,
"end": 125,
"ctxt": 0
},
"value": 3.0
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 129,
"end": 144,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 136,
"end": 139,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 137,
"end": 139,
"ctxt": 0
},
"value": "_5",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 142,
"end": 143,
"ctxt": 0
},
"value": 5.0
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "StaticBlock",
"span": {
"start": 148,
"end": 157,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 155,
"end": 157,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "StaticBlock",
"span": {
"start": 160,
"end": 169,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 167,
"end": 169,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "StaticBlock",
"span": {
"start": 172,
"end": 181,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 179,
"end": 181,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "StaticBlock",
"span": {
"start": 184,
"end": 193,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 191,
"end": 193,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "StaticBlock",
"span": {
"start": 196,
"end": 205,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 203,
"end": 205,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "StaticBlock",
"span": {
"start": 208,
"end": 217,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 215,
"end": 217,
"ctxt": 0
},
"stmts": []
}
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExpressionStatement",
"span": {
"start": 221,
"end": 239,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 221,
"end": 239,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 221,
"end": 232,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 221,
"end": 228,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 229,
"end": 232,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 233,
"end": 238,
"ctxt": 0
},
"value": "_C__1",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}