mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
308 lines
7.7 KiB
JSON
308 lines
7.7 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 130,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 52,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 23,
|
|
"ctxt": 0
|
|
},
|
|
"value": "e1",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 26,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "GetterProperty",
|
|
"span": {
|
|
"start": 28,
|
|
"end": 49,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 33,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"typeAnnotation": null,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 36,
|
|
"end": 49,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 47,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 45,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"value": 4.0,
|
|
"raw": "4"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 53,
|
|
"end": 79,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 57,
|
|
"end": 78,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 57,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"value": "e2",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 62,
|
|
"end": 78,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "SetterProperty",
|
|
"span": {
|
|
"start": 64,
|
|
"end": 76,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 68,
|
|
"end": 69,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"param": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 70,
|
|
"end": 71,
|
|
"ctxt": 0
|
|
},
|
|
"value": "n",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 73,
|
|
"end": 76,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 80,
|
|
"end": 130,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 84,
|
|
"end": 129,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 84,
|
|
"end": 86,
|
|
"ctxt": 0
|
|
},
|
|
"value": "e3",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 89,
|
|
"end": 129,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "GetterProperty",
|
|
"span": {
|
|
"start": 91,
|
|
"end": 113,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 95,
|
|
"end": 96,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"typeAnnotation": null,
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 99,
|
|
"end": 113,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"span": {
|
|
"start": 101,
|
|
"end": 111,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 108,
|
|
"end": 110,
|
|
"ctxt": 0
|
|
},
|
|
"value": "",
|
|
"raw": "''"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "SetterProperty",
|
|
"span": {
|
|
"start": 115,
|
|
"end": 127,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 119,
|
|
"end": 120,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"param": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 121,
|
|
"end": 122,
|
|
"ctxt": 0
|
|
},
|
|
"value": "n",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 124,
|
|
"end": 127,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|