Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-properties/undeclared-top-level/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
4 "errors": [
5 "SyntaxError: Private name #priv is not defined. (1:15)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":20,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":20,"index":20}},
20 "id": {
21 "type": "Identifier",
22 "start":4,"end":8,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":8,"index":8},"identifierName":"prop"},
23 "name": "prop"
24 },
25 "init": {
26 "type": "MemberExpression",
27 "start":11,"end":20,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":20,"index":20}},
28 "object": {
29 "type": "Identifier",
30 "start":11,"end":14,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":14,"index":14},"identifierName":"foo"},
31 "name": "foo"
32 },
33 "computed": false,
34 "property": {
35 "type": "PrivateName",
36 "start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20}},
37 "id": {
38 "type": "Identifier",
39 "start":16,"end":20,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":20,"index":20},"identifierName":"priv"},
40 "name": "priv"
41 }
42 }
43 }
44 }
45 ],
46 "kind": "var"
47 }
48 ],
49 "directives": []
50 }
51 }