Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":58}},
4 "errors": [
5 "SyntaxError: Private name #priv is not defined. (4:19)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":58}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":58}},
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":"A"},
19 "name": "A"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":8,"end":58,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":6,"column":1,"index":58}},
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":56,"loc":{"start":{"line":3,"column":2,"index":18},"end":{"line":5,"column":3,"index":56}},
44 "static": false,
45 "key": {
46 "type": "Identifier",
47 "start":18,"end":22,"loc":{"start":{"line":3,"column":2,"index":18},"end":{"line":3,"column":6,"index":22},"identifierName":"meth"},
48 "name": "meth"
49 },
50 "computed": false,
51 "kind": "method",
52 "id": null,
53 "generator": false,
54 "async": false,
55 "params": [],
56 "body": {
57 "type": "BlockStatement",
58 "start":25,"end":56,"loc":{"start":{"line":3,"column":9,"index":25},"end":{"line":5,"column":3,"index":56}},
59 "body": [
60 {
61 "type": "VariableDeclaration",
62 "start":31,"end":52,"loc":{"start":{"line":4,"column":4,"index":31},"end":{"line":4,"column":25,"index":52}},
63 "declarations": [
64 {
65 "type": "VariableDeclarator",
66 "start":35,"end":51,"loc":{"start":{"line":4,"column":8,"index":35},"end":{"line":4,"column":24,"index":51}},
67 "id": {
68 "type": "Identifier",
69 "start":35,"end":39,"loc":{"start":{"line":4,"column":8,"index":35},"end":{"line":4,"column":12,"index":39},"identifierName":"prop"},
70 "name": "prop"
71 },
72 "init": {
73 "type": "MemberExpression",
74 "start":42,"end":51,"loc":{"start":{"line":4,"column":15,"index":42},"end":{"line":4,"column":24,"index":51}},
75 "object": {
76 "type": "Identifier",
77 "start":42,"end":45,"loc":{"start":{"line":4,"column":15,"index":42},"end":{"line":4,"column":18,"index":45},"identifierName":"foo"},
78 "name": "foo"
79 },
80 "computed": false,
81 "property": {
82 "type": "PrivateName",
83 "start":46,"end":51,"loc":{"start":{"line":4,"column":19,"index":46},"end":{"line":4,"column":24,"index":51}},
84 "id": {
85 "type": "Identifier",
86 "start":47,"end":51,"loc":{"start":{"line":4,"column":20,"index":47},"end":{"line":4,"column":24,"index":51},"identifierName":"priv"},
87 "name": "priv"
88 }
89 }
90 }
91 }
92 ],
93 "kind": "var"
94 }
95 ],
96 "directives": []
97 }
98 }
99 ]
100 }
101 }
102 ],
103 "directives": []
104 }
105 }