mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
109 lines
2.4 KiB
JSON
109 lines
2.4 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 5,
|
|
"end": 6,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"consequent": {
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 8,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 8,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 8,
|
|
"end": 37,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "RegExpLiteral",
|
|
"span": {
|
|
"start": 8,
|
|
"end": 31,
|
|
"ctxt": 0
|
|
},
|
|
"pattern": " (\\\\ ? | & ) rct = j ",
|
|
"flags": ""
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 33,
|
|
"end": 37,
|
|
"ctxt": 0
|
|
},
|
|
"value": "test",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 44,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 40,
|
|
"end": 44,
|
|
"ctxt": 0
|
|
},
|
|
"value": "href",
|
|
"optional": false
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"typeArguments": null
|
|
}
|
|
},
|
|
"alternate": null
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|