Debian Codegraph @

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

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