Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
4 "errors": [
5 "SyntaxError: Unexpected private name. (2:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
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":33,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":33}},
25 "body": [
26 {
27 "type": "ClassPrivateProperty",
28 "start":12,"end":31,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":21,"index":31}},
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":29,"loc":{"start":{"line":2,"column":8,"index":18},"end":{"line":2,"column":19,"index":29}},
42 "properties": [
43 {
44 "type": "ObjectMethod",
45 "start":20,"end":27,"loc":{"start":{"line":2,"column":10,"index":20},"end":{"line":2,"column":17,"index":27}},
46 "method": true,
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 "kind": "method",
57 "id": null,
58 "generator": false,
59 "async": false,
60 "params": [],
61 "body": {
62 "type": "BlockStatement",
63 "start":25,"end":27,"loc":{"start":{"line":2,"column":15,"index":25},"end":{"line":2,"column":17,"index":27}},
64 "body": [],
65 "directives": []
66 }
67 }
68 ],
69 "extra": {
70 "parenthesized": true,
71 "parenStart": 17
72 }
73 }
74 }
75 ]
76 }
77 }
78 ],
79 "directives": []
80 }
81 }