Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":54}},
4 "errors": [
5 "SyntaxError: 'arguments' is only allowed in functions and class methods. (3:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":54}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":54}},
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":54,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":5,"column":1,"index":54}},
27 "body": [
28 {
29 "type": "ClassDeclaration",
30 "start":18,"end":52,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":4,"column":3,"index":52}},
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":52,"loc":{"start":{"line":2,"column":10,"index":26},"end":{"line":4,"column":3,"index":52}},
40 "body": [
41 {
42 "type": "ClassProperty",
43 "start":32,"end":48,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":20,"index":48}},
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": "Identifier",
53 "start":38,"end":47,"loc":{"start":{"line":3,"column":10,"index":38},"end":{"line":3,"column":19,"index":47},"identifierName":"arguments"},
54 "name": "arguments"
55 }
56 }
57 ]
58 }
59 }
60 ],
61 "directives": []
62 }
63 }
64 ],
65 "directives": []
66 }
67 }