Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/destructuring-private/valid-arrow-params/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":46}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":46}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":46}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"},
16 "name": "C"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":46,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":46}},
22 "body": [
23 {
24 "type": "ClassPrivateProperty",
25 "start":12,"end":19,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":9,"index":19}},
26 "static": false,
27 "key": {
28 "type": "PrivateName",
29 "start":12,"end":14,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":4,"index":14}},
30 "id": {
31 "type": "Identifier",
32 "start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"x"},
33 "name": "x"
34 }
35 },
36 "value": {
37 "type": "NumericLiteral",
38 "start":17,"end":18,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":8,"index":18}},
39 "extra": {
40 "rawValue": 1,
41 "raw": "1"
42 },
43 "value": 1
44 }
45 },
46 {
47 "type": "ClassPrivateProperty",
48 "start":22,"end":44,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":3,"column":24,"index":44}},
49 "static": false,
50 "key": {
51 "type": "PrivateName",
52 "start":22,"end":24,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":3,"column":4,"index":24}},
53 "id": {
54 "type": "Identifier",
55 "start":23,"end":24,"loc":{"start":{"line":3,"column":3,"index":23},"end":{"line":3,"column":4,"index":24},"identifierName":"p"},
56 "name": "p"
57 }
58 },
59 "value": {
60 "type": "ArrowFunctionExpression",
61 "start":27,"end":44,"loc":{"start":{"line":3,"column":7,"index":27},"end":{"line":3,"column":24,"index":44}},
62 "id": null,
63 "generator": false,
64 "async": false,
65 "params": [
66 {
67 "type": "ObjectPattern",
68 "start":28,"end":37,"loc":{"start":{"line":3,"column":8,"index":28},"end":{"line":3,"column":17,"index":37}},
69 "properties": [
70 {
71 "type": "ObjectProperty",
72 "start":30,"end":35,"loc":{"start":{"line":3,"column":10,"index":30},"end":{"line":3,"column":15,"index":35}},
73 "method": false,
74 "key": {
75 "type": "PrivateName",
76 "start":30,"end":32,"loc":{"start":{"line":3,"column":10,"index":30},"end":{"line":3,"column":12,"index":32}},
77 "id": {
78 "type": "Identifier",
79 "start":31,"end":32,"loc":{"start":{"line":3,"column":11,"index":31},"end":{"line":3,"column":12,"index":32},"identifierName":"x"},
80 "name": "x"
81 }
82 },
83 "shorthand": false,
84 "value": {
85 "type": "Identifier",
86 "start":34,"end":35,"loc":{"start":{"line":3,"column":14,"index":34},"end":{"line":3,"column":15,"index":35},"identifierName":"x"},
87 "name": "x"
88 }
89 }
90 ]
91 }
92 ],
93 "body": {
94 "type": "BlockStatement",
95 "start":42,"end":44,"loc":{"start":{"line":3,"column":22,"index":42},"end":{"line":3,"column":24,"index":44}},
96 "body": [],
97 "directives": []
98 }
99 }
100 }
101 ]
102 }
103 }
104 ],
105 "directives": []
106 }
107 }