Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/private-in/invalid-private-followed-by-in-4/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":59}},
4 "errors": [
5 "SyntaxError: Private names are only allowed in property accesses (`obj.#x`) or in `in` expressions (`#x in obj`). (4:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":59}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":59}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"},
19 "name": "C"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":8,"end":59,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":6,"column":1,"index":59}},
25 "body": [
26 {
27 "type": "ClassPrivateProperty",
28 "start":12,"end":15,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":5,"index":15}},
29 "static": false,
30 "key": {
31 "type": "PrivateName",
32 "start":12,"end":14,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":4,"index":14}},
33 "id": {
34 "type": "Identifier",
35 "start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"x"},
36 "name": "x"
37 }
38 },
39 "value": null
40 },
41 {
42 "type": "ClassMethod",
43 "start":18,"end":57,"loc":{"start":{"line":3,"column":2,"index":18},"end":{"line":5,"column":3,"index":57}},
44 "static": false,
45 "key": {
46 "type": "Identifier",
47 "start":24,"end":28,"loc":{"start":{"line":3,"column":8,"index":24},"end":{"line":3,"column":12,"index":28},"identifierName":"test"},
48 "name": "test"
49 },
50 "computed": false,
51 "kind": "method",
52 "id": null,
53 "generator": false,
54 "async": true,
55 "params": [],
56 "body": {
57 "type": "BlockStatement",
58 "start":31,"end":57,"loc":{"start":{"line":3,"column":15,"index":31},"end":{"line":5,"column":3,"index":57}},
59 "body": [
60 {
61 "type": "ExpressionStatement",
62 "start":37,"end":53,"loc":{"start":{"line":4,"column":4,"index":37},"end":{"line":4,"column":20,"index":53}},
63 "expression": {
64 "type": "BinaryExpression",
65 "start":37,"end":53,"loc":{"start":{"line":4,"column":4,"index":37},"end":{"line":4,"column":20,"index":53}},
66 "left": {
67 "type": "AwaitExpression",
68 "start":37,"end":45,"loc":{"start":{"line":4,"column":4,"index":37},"end":{"line":4,"column":12,"index":45}},
69 "argument": {
70 "type": "PrivateName",
71 "start":43,"end":45,"loc":{"start":{"line":4,"column":10,"index":43},"end":{"line":4,"column":12,"index":45}},
72 "id": {
73 "type": "Identifier",
74 "start":44,"end":45,"loc":{"start":{"line":4,"column":11,"index":44},"end":{"line":4,"column":12,"index":45},"identifierName":"x"},
75 "name": "x"
76 }
77 }
78 },
79 "operator": "in",
80 "right": {
81 "type": "ThisExpression",
82 "start":49,"end":53,"loc":{"start":{"line":4,"column":16,"index":49},"end":{"line":4,"column":20,"index":53}}
83 }
84 }
85 }
86 ],
87 "directives": []
88 }
89 }
90 ]
91 }
92 }
93 ],
94 "directives": []
95 }
96 }