Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/optional-chaining/new-createParenthesizedExpressions-true/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":17,"index":51}},
4 "errors": [
5 "SyntaxError: Constructors in/after an Optional Chain are not allowed. (1:12)",
6 "SyntaxError: Constructors in/after an Optional Chain are not allowed. (2:13)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":17,"index":51}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
17 "expression": {
18 "type": "NewExpression",
19 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
20 "callee": {
21 "type": "OptionalMemberExpression",
22 "start":4,"end":12,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":12,"index":12}},
23 "object": {
24 "type": "Identifier",
25 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"foo"},
26 "name": "foo"
27 },
28 "computed": false,
29 "property": {
30 "type": "Identifier",
31 "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"bar"},
32 "name": "bar"
33 },
34 "optional": true
35 },
36 "arguments": []
37 }
38 },
39 {
40 "type": "ExpressionStatement",
41 "start":16,"end":32,"loc":{"start":{"line":2,"column":0,"index":16},"end":{"line":2,"column":16,"index":32}},
42 "expression": {
43 "type": "NewExpression",
44 "start":16,"end":31,"loc":{"start":{"line":2,"column":0,"index":16},"end":{"line":2,"column":15,"index":31}},
45 "callee": {
46 "type": "MemberExpression",
47 "start":20,"end":27,"loc":{"start":{"line":2,"column":4,"index":20},"end":{"line":2,"column":11,"index":27}},
48 "object": {
49 "type": "Identifier",
50 "start":20,"end":23,"loc":{"start":{"line":2,"column":4,"index":20},"end":{"line":2,"column":7,"index":23},"identifierName":"foo"},
51 "name": "foo"
52 },
53 "computed": false,
54 "property": {
55 "type": "Identifier",
56 "start":24,"end":27,"loc":{"start":{"line":2,"column":8,"index":24},"end":{"line":2,"column":11,"index":27},"identifierName":"bar"},
57 "name": "bar"
58 }
59 },
60 "arguments": []
61 }
62 },
63 {
64 "type": "ExpressionStatement",
65 "start":34,"end":51,"loc":{"start":{"line":4,"column":0,"index":34},"end":{"line":4,"column":17,"index":51}},
66 "expression": {
67 "type": "NewExpression",
68 "start":34,"end":50,"loc":{"start":{"line":4,"column":0,"index":34},"end":{"line":4,"column":16,"index":50}},
69 "callee": {
70 "type": "OptionalMemberExpression",
71 "start":39,"end":47,"loc":{"start":{"line":4,"column":5,"index":39},"end":{"line":4,"column":13,"index":47}},
72 "object": {
73 "type": "Identifier",
74 "start":39,"end":42,"loc":{"start":{"line":4,"column":5,"index":39},"end":{"line":4,"column":8,"index":42},"identifierName":"foo"},
75 "name": "foo"
76 },
77 "computed": false,
78 "property": {
79 "type": "Identifier",
80 "start":44,"end":47,"loc":{"start":{"line":4,"column":10,"index":44},"end":{"line":4,"column":13,"index":47},"identifierName":"bar"},
81 "name": "bar"
82 },
83 "optional": true,
84 "extra": {
85 "parenthesized": true,
86 "parenStart": 38
87 }
88 },
89 "arguments": []
90 }
91 }
92 ],
93 "directives": []
94 }
95 }