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

187 lines
5.9 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 116,
"end": 167,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 116,
"end": 167,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 116,
"end": 166,
"ctxt": 0
},
"callee": {
"type": "ParenthesisExpression",
"span": {
"start": 116,
"end": 164,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 117,
"end": 163,
"ctxt": 0
},
"params": [
{
"type": "ObjectPattern",
"span": {
"start": 118,
"end": 156,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 120,
"end": 146,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 121,
"end": 145,
"ctxt": 0
},
"object": {
"type": "ClassExpression",
"identifier": null,
"span": {
"start": 121,
"end": 143,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 129,
"end": 141,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 140,
"end": 141,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
"property": {
"type": "Identifier",
"span": {
"start": 144,
"end": 145,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
},
"value": {
"type": "AssignmentPattern",
"span": {
"start": 148,
"end": 154,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 148,
"end": 149,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 152,
"end": 154,
"ctxt": 0
},
"value": "",
"raw": "\"\""
},
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 161,
"end": 163,
"ctxt": 0
},
"stmts": []
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}