Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":12,"index":37}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":12,"index":37}},
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": "OptionalMemberExpression",
15 "start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
16 "object": {
17 "type": "Identifier",
18 "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3},"identifierName":"foo"},
19 "name": "foo"
20 },
21 "computed": false,
22 "property": {
23 "type": "Identifier",
24 "start":5,"end":8,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":8,"index":8},"identifierName":"bar"},
25 "name": "bar"
26 },
27 "optional": true
28 }
29 },
30 {
31 "type": "ExpressionStatement",
32 "start":10,"end":23,"loc":{"start":{"line":3,"column":0,"index":10},"end":{"line":3,"column":13,"index":23}},
33 "expression": {
34 "type": "OptionalMemberExpression",
35 "start":10,"end":23,"loc":{"start":{"line":3,"column":0,"index":10},"end":{"line":3,"column":13,"index":23}},
36 "object": {
37 "type": "OptionalMemberExpression",
38 "start":10,"end":18,"loc":{"start":{"line":3,"column":0,"index":10},"end":{"line":3,"column":8,"index":18}},
39 "object": {
40 "type": "Identifier",
41 "start":10,"end":13,"loc":{"start":{"line":3,"column":0,"index":10},"end":{"line":3,"column":3,"index":13},"identifierName":"foo"},
42 "name": "foo"
43 },
44 "computed": false,
45 "property": {
46 "type": "Identifier",
47 "start":15,"end":18,"loc":{"start":{"line":3,"column":5,"index":15},"end":{"line":3,"column":8,"index":18},"identifierName":"bar"},
48 "name": "bar"
49 },
50 "optional": true
51 },
52 "computed": false,
53 "property": {
54 "type": "Identifier",
55 "start":20,"end":23,"loc":{"start":{"line":3,"column":10,"index":20},"end":{"line":3,"column":13,"index":23},"identifierName":"baz"},
56 "name": "baz"
57 },
58 "optional": true
59 }
60 },
61 {
62 "type": "ExpressionStatement",
63 "start":25,"end":37,"loc":{"start":{"line":5,"column":0,"index":25},"end":{"line":5,"column":12,"index":37}},
64 "expression": {
65 "type": "OptionalMemberExpression",
66 "start":25,"end":37,"loc":{"start":{"line":5,"column":0,"index":25},"end":{"line":5,"column":12,"index":37}},
67 "object": {
68 "type": "MemberExpression",
69 "start":25,"end":32,"loc":{"start":{"line":5,"column":0,"index":25},"end":{"line":5,"column":7,"index":32}},
70 "object": {
71 "type": "Identifier",
72 "start":25,"end":28,"loc":{"start":{"line":5,"column":0,"index":25},"end":{"line":5,"column":3,"index":28},"identifierName":"foo"},
73 "name": "foo"
74 },
75 "computed": false,
76 "property": {
77 "type": "Identifier",
78 "start":29,"end":32,"loc":{"start":{"line":5,"column":4,"index":29},"end":{"line":5,"column":7,"index":32},"identifierName":"bar"},
79 "name": "bar"
80 }
81 },
82 "computed": false,
83 "property": {
84 "type": "Identifier",
85 "start":34,"end":37,"loc":{"start":{"line":5,"column":9,"index":34},"end":{"line":5,"column":12,"index":37},"identifierName":"baz"},
86 "name": "baz"
87 },
88 "optional": true
89 }
90 }
91 ],
92 "directives": []
93 }
94 }