mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
292 lines
6.5 KiB
JSON
292 lines
6.5 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 210,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 36,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"value": "bar",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 21,
|
|
"end": 66,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 66,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 48,
|
|
"end": 58,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "UnaryExpression",
|
|
"span": {
|
|
"start": 48,
|
|
"end": 57,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "!",
|
|
"argument": {
|
|
"type": "AwaitExpression",
|
|
"span": {
|
|
"start": 49,
|
|
"end": 57,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 55,
|
|
"end": 57,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0,
|
|
"raw": "42"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 87,
|
|
"ctxt": 0
|
|
},
|
|
"value": "bar1",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 68,
|
|
"end": 114,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 90,
|
|
"end": 114,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 96,
|
|
"end": 106,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "UnaryExpression",
|
|
"span": {
|
|
"start": 96,
|
|
"end": 105,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "+",
|
|
"argument": {
|
|
"type": "AwaitExpression",
|
|
"span": {
|
|
"start": 97,
|
|
"end": 105,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 103,
|
|
"end": 105,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0,
|
|
"raw": "42"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 131,
|
|
"end": 135,
|
|
"ctxt": 0
|
|
},
|
|
"value": "bar3",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 116,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 138,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 144,
|
|
"end": 154,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "UnaryExpression",
|
|
"span": {
|
|
"start": 144,
|
|
"end": 153,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "-",
|
|
"argument": {
|
|
"type": "AwaitExpression",
|
|
"span": {
|
|
"start": 145,
|
|
"end": 153,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 151,
|
|
"end": 153,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0,
|
|
"raw": "42"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 179,
|
|
"end": 183,
|
|
"ctxt": 0
|
|
},
|
|
"value": "bar4",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 164,
|
|
"end": 210,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 186,
|
|
"end": 210,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 192,
|
|
"end": 202,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "UnaryExpression",
|
|
"span": {
|
|
"start": 192,
|
|
"end": 201,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "~",
|
|
"argument": {
|
|
"type": "AwaitExpression",
|
|
"span": {
|
|
"start": 193,
|
|
"end": 201,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 199,
|
|
"end": 201,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0,
|
|
"raw": "42"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|