Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/optional-chaining/optional-constructor/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
4 "errors": [
5 "SyntaxError: Constructors in/after an Optional Chain are not allowed. (1:7)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
16 "expression": {
17 "type": "NewExpression",
18 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
19 "callee": {
20 "type": "Identifier",
21 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"},
22 "name": "a"
23 },
24 "arguments": []
25 }
26 }
27 ],
28 "directives": []
29 }
30 }