Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-properties/invalid-object-property/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
4 "errors": [
5 "SyntaxError: Unexpected private name. (2:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
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":32,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":32}},
25 "body": [
26 {
27 "type": "ClassPrivateProperty",
28 "start":12,"end":30,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":20,"index":30}},
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":"p"},
36 "name": "p"
37 }
38 },
39 "value": {
40 "type": "ObjectExpression",
41 "start":18,"end":28,"loc":{"start":{"line":2,"column":8,"index":18},"end":{"line":2,"column":18,"index":28}},
42 "properties": [
43 {
44 "type": "ObjectProperty",
45 "start":20,"end":26,"loc":{"start":{"line":2,"column":10,"index":20},"end":{"line":2,"column":16,"index":26}},
46 "method": false,
47 "key": {
48 "type": "PrivateName",
49 "start":20,"end":22,"loc":{"start":{"line":2,"column":10,"index":20},"end":{"line":2,"column":12,"index":22}},
50 "id": {
51 "type": "Identifier",
52 "start":21,"end":22,"loc":{"start":{"line":2,"column":11,"index":21},"end":{"line":2,"column":12,"index":22},"identifierName":"x"},
53 "name": "x"
54 }
55 },
56 "shorthand": false,
57 "value": {
58 "type": "NumericLiteral",
59 "start":24,"end":26,"loc":{"start":{"line":2,"column":14,"index":24},"end":{"line":2,"column":16,"index":26}},
60 "extra": {
61 "rawValue": 42,
62 "raw": "42"
63 },
64 "value": 42
65 }
66 }
67 ],
68 "extra": {
69 "parenthesized": true,
70 "parenStart": 17
71 }
72 }
73 }
74 ]
75 }
76 }
77 ],
78 "directives": []
79 }
80 }