Debian Codegraph @

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

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