Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
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":73,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":7,"column":1,"index":73}},
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":71,"loc":{"start":{"line":4,"column":2,"index":32},"end":{"line":6,"column":3,"index":71}},
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":71,"loc":{"start":{"line":4,"column":16,"index":46},"end":{"line":6,"column":3,"index":71}},
64 "body": [
65 {
66 "type": "ReturnStatement",
67 "start":52,"end":67,"loc":{"start":{"line":5,"column":4,"index":52},"end":{"line":5,"column":19,"index":67}},
68 "argument": {
69 "type": "OptionalMemberExpression",
70 "start":59,"end":66,"loc":{"start":{"line":5,"column":11,"index":59},"end":{"line":5,"column":18,"index":66}},
71 "object": {
72 "type": "Identifier",
73 "start":59,"end":62,"loc":{"start":{"line":5,"column":11,"index":59},"end":{"line":5,"column":14,"index":62},"identifierName":"Foo"},
74 "name": "Foo"
75 },
76 "computed": false,
77 "property": {
78 "type": "PrivateName",
79 "start":64,"end":66,"loc":{"start":{"line":5,"column":16,"index":64},"end":{"line":5,"column":18,"index":66}},
80 "id": {
81 "type": "Identifier",
82 "start":65,"end":66,"loc":{"start":{"line":5,"column":17,"index":65},"end":{"line":5,"column":18,"index":66},"identifierName":"x"},
83 "name": "x"
84 }
85 },
86 "optional": true
87 }
88 }
89 ],
90 "directives": []
91 }
92 }
93 ]
94 }
95 }
96 ],
97 "directives": []
98 }
99 }