swc/crates/swc_ecma_parser/tests/tsc/parserRegularExpressionDivideAmbiguity1.json

96 lines
2.0 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 21,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 21,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 0,
"end": 20,
"ctxt": 0
},
"operator": "/",
"left": {
"type": "BinaryExpression",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"operator": "/",
"left": {
"type": "NumericLiteral",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"right": {
"type": "Identifier",
"span": {
"start": 3,
"end": 12,
"ctxt": 0
},
"value": "notregexp",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 13,
"end": 20,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 13,
"end": 18,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 15,
"end": 18,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
}
],
"interpreter": null
}