swc/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity3.json
2022-04-05 12:46:35 +00:00

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
}