Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/destructuring-private/invalid-object-literal/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":2,"index":53}},
4 "errors": [
5 "SyntaxError: Unexpected private name. (4:4)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":2,"index":53}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":2,"index":53}},
16 "expression": {
17 "type": "ClassExpression",
18 "start":1,"end":52,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":7,"column":1,"index":52}},
19 "id": null,
20 "superClass": null,
21 "body": {
22 "type": "ClassBody",
23 "start":7,"end":52,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":7,"column":1,"index":52}},
24 "body": [
25 {
26 "type": "ClassPrivateProperty",
27 "start":11,"end":14,"loc":{"start":{"line":2,"column":2,"index":11},"end":{"line":2,"column":5,"index":14}},
28 "static": false,
29 "key": {
30 "type": "PrivateName",
31 "start":11,"end":13,"loc":{"start":{"line":2,"column":2,"index":11},"end":{"line":2,"column":4,"index":13}},
32 "id": {
33 "type": "Identifier",
34 "start":12,"end":13,"loc":{"start":{"line":2,"column":3,"index":12},"end":{"line":2,"column":4,"index":13},"identifierName":"x"},
35 "name": "x"
36 }
37 },
38 "value": null
39 },
40 {
41 "type": "ClassProperty",
42 "start":17,"end":50,"loc":{"start":{"line":3,"column":2,"index":17},"end":{"line":6,"column":3,"index":50}},
43 "static": false,
44 "key": {
45 "type": "Identifier",
46 "start":17,"end":18,"loc":{"start":{"line":3,"column":2,"index":17},"end":{"line":3,"column":3,"index":18},"identifierName":"m"},
47 "name": "m"
48 },
49 "computed": false,
50 "value": {
51 "type": "ObjectExpression",
52 "start":21,"end":50,"loc":{"start":{"line":3,"column":6,"index":21},"end":{"line":6,"column":3,"index":50}},
53 "properties": [
54 {
55 "type": "ObjectProperty",
56 "start":27,"end":32,"loc":{"start":{"line":4,"column":4,"index":27},"end":{"line":4,"column":9,"index":32}},
57 "method": false,
58 "key": {
59 "type": "PrivateName",
60 "start":27,"end":29,"loc":{"start":{"line":4,"column":4,"index":27},"end":{"line":4,"column":6,"index":29}},
61 "id": {
62 "type": "Identifier",
63 "start":28,"end":29,"loc":{"start":{"line":4,"column":5,"index":28},"end":{"line":4,"column":6,"index":29},"identifierName":"x"},
64 "name": "x"
65 }
66 },
67 "shorthand": false,
68 "value": {
69 "type": "Identifier",
70 "start":31,"end":32,"loc":{"start":{"line":4,"column":8,"index":31},"end":{"line":4,"column":9,"index":32},"identifierName":"x"},
71 "name": "x"
72 }
73 },
74 {
75 "type": "ObjectProperty",
76 "start":38,"end":46,"loc":{"start":{"line":5,"column":4,"index":38},"end":{"line":5,"column":12,"index":46}},
77 "method": false,
78 "key": {
79 "type": "Identifier",
80 "start":38,"end":39,"loc":{"start":{"line":5,"column":4,"index":38},"end":{"line":5,"column":5,"index":39},"identifierName":"y"},
81 "name": "y"
82 },
83 "computed": false,
84 "shorthand": false,
85 "value": {
86 "type": "AssignmentExpression",
87 "start":41,"end":46,"loc":{"start":{"line":5,"column":7,"index":41},"end":{"line":5,"column":12,"index":46}},
88 "operator": "=",
89 "left": {
90 "type": "Identifier",
91 "start":41,"end":42,"loc":{"start":{"line":5,"column":7,"index":41},"end":{"line":5,"column":8,"index":42},"identifierName":"y"},
92 "name": "y"
93 },
94 "right": {
95 "type": "Identifier",
96 "start":45,"end":46,"loc":{"start":{"line":5,"column":11,"index":45},"end":{"line":5,"column":12,"index":46},"identifierName":"m"},
97 "name": "m"
98 }
99 }
100 }
101 ]
102 }
103 }
104 ]
105 },
106 "extra": {
107 "parenthesized": true,
108 "parenStart": 0
109 }
110 }
111 }
112 ],
113 "directives": []
114 }
115 }