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

98 lines
2.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 32,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 32,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1,
"end": 31,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 28,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1,
"end": 11,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"value": "href",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 6,
"end": 11,
"ctxt": 0
},
"value": "match",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "RegExpLiteral",
"span": {
"start": 12,
"end": 27,
"ctxt": 0
},
"pattern": ":\\/\\/(.[^/]+)",
"flags": ""
}
}
],
"typeArguments": null
},
"property": {
"type": "Computed",
"span": {
"start": 28,
"end": 31,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
}
],
"interpreter": null
}