Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/optional-chaining/class-contructor-call/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
4 "errors": [
5 "SyntaxError: Constructors in/after an Optional Chain are not allowed. (1:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
16 "expression": {
17 "type": "NewExpression",
18 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
19 "callee": {
20 "type": "OptionalMemberExpression",
21 "start":4,"end":10,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":10,"index":10}},
22 "object": {
23 "type": "OptionalMemberExpression",
24 "start":4,"end":8,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":8,"index":8}},
25 "object": {
26 "type": "Identifier",
27 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"C"},
28 "name": "C"
29 },
30 "computed": false,
31 "property": {
32 "type": "Identifier",
33 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"b"},
34 "name": "b"
35 },
36 "optional": true
37 },
38 "computed": false,
39 "property": {
40 "type": "Identifier",
41 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"d"},
42 "name": "d"
43 },
44 "optional": false
45 },
46 "arguments": []
47 }
48 }
49 ],
50 "directives": []
51 }
52 }