Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/arguments-in-arrow-function/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":60}},
4 "errors": [
5 "SyntaxError: 'arguments' is only allowed in functions and class methods. (3:16)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":60}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":60}},
16 "id": {
17 "type": "Identifier",
18 "start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11},"identifierName":"fn"},
19 "name": "fn"
20 },
21 "generator": false,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":14,"end":60,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":5,"column":1,"index":60}},
27 "body": [
28 {
29 "type": "ClassDeclaration",
30 "start":18,"end":58,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":4,"column":3,"index":58}},
31 "id": {
32 "type": "Identifier",
33 "start":24,"end":25,"loc":{"start":{"line":2,"column":8,"index":24},"end":{"line":2,"column":9,"index":25},"identifierName":"A"},
34 "name": "A"
35 },
36 "superClass": null,
37 "body": {
38 "type": "ClassBody",
39 "start":26,"end":58,"loc":{"start":{"line":2,"column":10,"index":26},"end":{"line":4,"column":3,"index":58}},
40 "body": [
41 {
42 "type": "ClassProperty",
43 "start":32,"end":54,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":26,"index":54}},
44 "static": false,
45 "key": {
46 "type": "Identifier",
47 "start":32,"end":35,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":7,"index":35},"identifierName":"foo"},
48 "name": "foo"
49 },
50 "computed": false,
51 "value": {
52 "type": "ArrowFunctionExpression",
53 "start":38,"end":53,"loc":{"start":{"line":3,"column":10,"index":38},"end":{"line":3,"column":25,"index":53}},
54 "id": null,
55 "generator": false,
56 "async": false,
57 "params": [],
58 "body": {
59 "type": "Identifier",
60 "start":44,"end":53,"loc":{"start":{"line":3,"column":16,"index":44},"end":{"line":3,"column":25,"index":53},"identifierName":"arguments"},
61 "name": "arguments"
62 }
63 }
64 }
65 ]
66 }
67 }
68 ],
69 "directives": []
70 }
71 }
72 ],
73 "directives": []
74 }
75 }