mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
245 lines
5.7 KiB
JSON
245 lines
5.7 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 35,
|
|
"end": 165,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 41,
|
|
"end": 42,
|
|
"ctxt": 0
|
|
},
|
|
"value": "A",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 35,
|
|
"end": 165,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "PrivateProperty",
|
|
"span": {
|
|
"start": 49,
|
|
"end": 66,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 49,
|
|
"end": 53,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 50,
|
|
"end": 53,
|
|
"ctxt": 0
|
|
},
|
|
"value": "foo",
|
|
"optional": false
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 56,
|
|
"end": 65,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 56,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 65,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 62,
|
|
"end": 65,
|
|
"ctxt": 0
|
|
},
|
|
"value": "bar",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"typeAnnotation": null,
|
|
"isStatic": false,
|
|
"decorators": [],
|
|
"accessibility": null,
|
|
"isOptional": false,
|
|
"isOverride": false,
|
|
"readonly": false,
|
|
"definite": false
|
|
},
|
|
{
|
|
"type": "PrivateProperty",
|
|
"span": {
|
|
"start": 71,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 71,
|
|
"end": 75,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 72,
|
|
"end": 75,
|
|
"ctxt": 0
|
|
},
|
|
"value": "bar",
|
|
"optional": false
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 78,
|
|
"end": 87,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 78,
|
|
"end": 82,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "PrivateName",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 87,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 84,
|
|
"end": 87,
|
|
"ctxt": 0
|
|
},
|
|
"value": "foo",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"typeAnnotation": null,
|
|
"isStatic": false,
|
|
"decorators": [],
|
|
"accessibility": null,
|
|
"isOptional": false,
|
|
"isOverride": false,
|
|
"readonly": false,
|
|
"definite": false
|
|
},
|
|
{
|
|
"type": "ClassProperty",
|
|
"span": {
|
|
"start": 93,
|
|
"end": 117,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Computed",
|
|
"span": {
|
|
"start": 93,
|
|
"end": 101,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 94,
|
|
"end": 100,
|
|
"ctxt": 0
|
|
},
|
|
"value": "#baz",
|
|
"raw": "\"#baz\""
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 104,
|
|
"end": 116,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 104,
|
|
"end": 108,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Computed",
|
|
"span": {
|
|
"start": 108,
|
|
"end": 116,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 109,
|
|
"end": 115,
|
|
"ctxt": 0
|
|
},
|
|
"value": "#baz",
|
|
"raw": "\"#baz\""
|
|
}
|
|
}
|
|
},
|
|
"typeAnnotation": null,
|
|
"isStatic": false,
|
|
"decorators": [],
|
|
"accessibility": null,
|
|
"isAbstract": false,
|
|
"isOptional": false,
|
|
"isOverride": false,
|
|
"readonly": false,
|
|
"declare": false,
|
|
"definite": false
|
|
}
|
|
],
|
|
"superClass": null,
|
|
"isAbstract": false,
|
|
"typeParams": null,
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|