Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/private-in/private-in-without-field/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":42}},
4 "errors": [
5 "SyntaxError: Private name #x is not defined. (3:4)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":42}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":42}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"},
19 "name": "Foo"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":10,"end":42,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":5,"column":1,"index":42}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":14,"end":40,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":4,"column":3,"index":40}},
29 "static": false,
30 "key": {
31 "type": "Identifier",
32 "start":14,"end":18,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":6,"index":18},"identifierName":"test"},
33 "name": "test"
34 },
35 "computed": false,
36 "kind": "method",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [],
41 "body": {
42 "type": "BlockStatement",
43 "start":21,"end":40,"loc":{"start":{"line":2,"column":9,"index":21},"end":{"line":4,"column":3,"index":40}},
44 "body": [
45 {
46 "type": "ExpressionStatement",
47 "start":27,"end":36,"loc":{"start":{"line":3,"column":4,"index":27},"end":{"line":3,"column":13,"index":36}},
48 "expression": {
49 "type": "BinaryExpression",
50 "start":27,"end":35,"loc":{"start":{"line":3,"column":4,"index":27},"end":{"line":3,"column":12,"index":35}},
51 "left": {
52 "type": "PrivateName",
53 "start":27,"end":29,"loc":{"start":{"line":3,"column":4,"index":27},"end":{"line":3,"column":6,"index":29}},
54 "id": {
55 "type": "Identifier",
56 "start":28,"end":29,"loc":{"start":{"line":3,"column":5,"index":28},"end":{"line":3,"column":6,"index":29},"identifierName":"x"},
57 "name": "x"
58 }
59 },
60 "operator": "in",
61 "right": {
62 "type": "ObjectExpression",
63 "start":33,"end":35,"loc":{"start":{"line":3,"column":10,"index":33},"end":{"line":3,"column":12,"index":35}},
64 "properties": []
65 }
66 }
67 }
68 ],
69 "directives": []
70 }
71 }
72 ]
73 }
74 }
75 ],
76 "directives": []
77 }
78 }