Debian Codegraph @

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

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