Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/optional-chaining/chaining-off-optionally-chained-keys-named-class-or-function/output.json

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