mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
77 lines
1.5 KiB
JSON
77 lines
1.5 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 23,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 23,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 4,
|
|
"end": 5,
|
|
"ctxt": 0
|
|
},
|
|
"value": 1.0,
|
|
"raw": "1"
|
|
},
|
|
"consequent": {
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 7,
|
|
"end": 23,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 7,
|
|
"end": 22,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 7,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "RegExpLiteral",
|
|
"span": {
|
|
"start": 7,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"pattern": "regexp",
|
|
"flags": "a"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"value": "foo",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
}
|
|
},
|
|
"alternate": null
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|