Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-properties/optional-chain-start-call/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":87}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":87}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":87}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"},
16 "name": "Foo"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":10,"end":87,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":7,"column":1,"index":87}},
22 "body": [
23 {
24 "type": "ClassPrivateProperty",
25 "start":14,"end":40,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":28,"index":40}},
26 "static": true,
27 "key": {
28 "type": "PrivateName",
29 "start":21,"end":23,"loc":{"start":{"line":2,"column":9,"index":21},"end":{"line":2,"column":11,"index":23}},
30 "id": {
31 "type": "Identifier",
32 "start":22,"end":23,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":11,"index":23},"identifierName":"m"},
33 "name": "m"
34 }
35 },
36 "value": {
37 "type": "FunctionExpression",
38 "start":26,"end":39,"loc":{"start":{"line":2,"column":14,"index":26},"end":{"line":2,"column":27,"index":39}},
39 "id": null,
40 "generator": false,
41 "async": false,
42 "params": [],
43 "body": {
44 "type": "BlockStatement",
45 "start":37,"end":39,"loc":{"start":{"line":2,"column":25,"index":37},"end":{"line":2,"column":27,"index":39}},
46 "body": [],
47 "directives": []
48 }
49 }
50 },
51 {
52 "type": "ClassMethod",
53 "start":44,"end":85,"loc":{"start":{"line":4,"column":2,"index":44},"end":{"line":6,"column":3,"index":85}},
54 "static": true,
55 "key": {
56 "type": "Identifier",
57 "start":51,"end":55,"loc":{"start":{"line":4,"column":9,"index":51},"end":{"line":4,"column":13,"index":55},"identifierName":"test"},
58 "name": "test"
59 },
60 "computed": false,
61 "kind": "method",
62 "id": null,
63 "generator": false,
64 "async": false,
65 "params": [],
66 "body": {
67 "type": "BlockStatement",
68 "start":58,"end":85,"loc":{"start":{"line":4,"column":16,"index":58},"end":{"line":6,"column":3,"index":85}},
69 "body": [
70 {
71 "type": "ReturnStatement",
72 "start":64,"end":81,"loc":{"start":{"line":5,"column":4,"index":64},"end":{"line":5,"column":21,"index":81}},
73 "argument": {
74 "type": "OptionalCallExpression",
75 "start":71,"end":80,"loc":{"start":{"line":5,"column":11,"index":71},"end":{"line":5,"column":20,"index":80}},
76 "callee": {
77 "type": "OptionalMemberExpression",
78 "start":71,"end":78,"loc":{"start":{"line":5,"column":11,"index":71},"end":{"line":5,"column":18,"index":78}},
79 "object": {
80 "type": "Identifier",
81 "start":71,"end":74,"loc":{"start":{"line":5,"column":11,"index":71},"end":{"line":5,"column":14,"index":74},"identifierName":"Foo"},
82 "name": "Foo"
83 },
84 "computed": false,
85 "property": {
86 "type": "PrivateName",
87 "start":76,"end":78,"loc":{"start":{"line":5,"column":16,"index":76},"end":{"line":5,"column":18,"index":78}},
88 "id": {
89 "type": "Identifier",
90 "start":77,"end":78,"loc":{"start":{"line":5,"column":17,"index":77},"end":{"line":5,"column":18,"index":78},"identifierName":"m"},
91 "name": "m"
92 }
93 },
94 "optional": true
95 },
96 "optional": false,
97 "arguments": []
98 }
99 }
100 ],
101 "directives": []
102 }
103 }
104 ]
105 }
106 }
107 ],
108 "directives": []
109 }
110 }