Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":15,"index":39}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":15,"index":39}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
13 "expression": {
14 "type": "MemberExpression",
15 "start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
16 "object": {
17 "type": "OptionalMemberExpression",
18 "start":1,"end":5,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":5,"index":5}},
19 "object": {
20 "type": "Identifier",
21 "start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2},"identifierName":"a"},
22 "name": "a"
23 },
24 "computed": false,
25 "property": {
26 "type": "Identifier",
27 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"b"},
28 "name": "b"
29 },
30 "optional": true,
31 "extra": {
32 "parenthesized": true,
33 "parenStart": 0
34 }
35 },
36 "computed": false,
37 "property": {
38 "type": "Identifier",
39 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"c"},
40 "name": "c"
41 }
42 }
43 },
44 {
45 "type": "ExpressionStatement",
46 "start":11,"end":22,"loc":{"start":{"line":3,"column":0,"index":11},"end":{"line":3,"column":11,"index":22}},
47 "expression": {
48 "type": "CallExpression",
49 "start":11,"end":21,"loc":{"start":{"line":3,"column":0,"index":11},"end":{"line":3,"column":10,"index":21}},
50 "callee": {
51 "type": "MemberExpression",
52 "start":11,"end":19,"loc":{"start":{"line":3,"column":0,"index":11},"end":{"line":3,"column":8,"index":19}},
53 "object": {
54 "type": "OptionalMemberExpression",
55 "start":12,"end":16,"loc":{"start":{"line":3,"column":1,"index":12},"end":{"line":3,"column":5,"index":16}},
56 "object": {
57 "type": "Identifier",
58 "start":12,"end":13,"loc":{"start":{"line":3,"column":1,"index":12},"end":{"line":3,"column":2,"index":13},"identifierName":"a"},
59 "name": "a"
60 },
61 "computed": false,
62 "property": {
63 "type": "Identifier",
64 "start":15,"end":16,"loc":{"start":{"line":3,"column":4,"index":15},"end":{"line":3,"column":5,"index":16},"identifierName":"b"},
65 "name": "b"
66 },
67 "optional": true,
68 "extra": {
69 "parenthesized": true,
70 "parenStart": 11
71 }
72 },
73 "computed": false,
74 "property": {
75 "type": "Identifier",
76 "start":18,"end":19,"loc":{"start":{"line":3,"column":7,"index":18},"end":{"line":3,"column":8,"index":19},"identifierName":"c"},
77 "name": "c"
78 }
79 },
80 "arguments": []
81 }
82 },
83 {
84 "type": "ExpressionStatement",
85 "start":24,"end":39,"loc":{"start":{"line":5,"column":0,"index":24},"end":{"line":5,"column":15,"index":39}},
86 "expression": {
87 "type": "OptionalMemberExpression",
88 "start":24,"end":38,"loc":{"start":{"line":5,"column":0,"index":24},"end":{"line":5,"column":14,"index":38}},
89 "object": {
90 "type": "OptionalMemberExpression",
91 "start":24,"end":35,"loc":{"start":{"line":5,"column":0,"index":24},"end":{"line":5,"column":11,"index":35}},
92 "object": {
93 "type": "OptionalMemberExpression",
94 "start":24,"end":33,"loc":{"start":{"line":5,"column":0,"index":24},"end":{"line":5,"column":9,"index":33}},
95 "object": {
96 "type": "OptionalMemberExpression",
97 "start":25,"end":29,"loc":{"start":{"line":5,"column":1,"index":25},"end":{"line":5,"column":5,"index":29}},
98 "object": {
99 "type": "Identifier",
100 "start":25,"end":26,"loc":{"start":{"line":5,"column":1,"index":25},"end":{"line":5,"column":2,"index":26},"identifierName":"a"},
101 "name": "a"
102 },
103 "computed": false,
104 "property": {
105 "type": "Identifier",
106 "start":28,"end":29,"loc":{"start":{"line":5,"column":4,"index":28},"end":{"line":5,"column":5,"index":29},"identifierName":"b"},
107 "name": "b"
108 },
109 "optional": true,
110 "extra": {
111 "parenthesized": true,
112 "parenStart": 24
113 }
114 },
115 "computed": false,
116 "property": {
117 "type": "Identifier",
118 "start":32,"end":33,"loc":{"start":{"line":5,"column":8,"index":32},"end":{"line":5,"column":9,"index":33},"identifierName":"c"},
119 "name": "c"
120 },
121 "optional": true
122 },
123 "computed": false,
124 "property": {
125 "type": "Identifier",
126 "start":34,"end":35,"loc":{"start":{"line":5,"column":10,"index":34},"end":{"line":5,"column":11,"index":35},"identifierName":"d"},
127 "name": "d"
128 },
129 "optional": false
130 },
131 "computed": false,
132 "property": {
133 "type": "Identifier",
134 "start":37,"end":38,"loc":{"start":{"line":5,"column":13,"index":37},"end":{"line":5,"column":14,"index":38},"identifierName":"e"},
135 "name": "e"
136 },
137 "optional": true
138 }
139 }
140 ],
141 "directives": []
142 }
143 }