Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":71,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":71}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":71,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":71}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":71,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":71}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11},"identifierName":"fn"},
16 "name": "fn"
17 },
18 "generator": false,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":14,"end":71,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":5,"column":1,"index":71}},
24 "body": [
25 {
26 "type": "ClassDeclaration",
27 "start":18,"end":69,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":4,"column":3,"index":69}},
28 "id": {
29 "type": "Identifier",
30 "start":24,"end":25,"loc":{"start":{"line":2,"column":8,"index":24},"end":{"line":2,"column":9,"index":25},"identifierName":"A"},
31 "name": "A"
32 },
33 "superClass": null,
34 "body": {
35 "type": "ClassBody",
36 "start":26,"end":69,"loc":{"start":{"line":2,"column":10,"index":26},"end":{"line":4,"column":3,"index":69}},
37 "body": [
38 {
39 "type": "ClassProperty",
40 "start":32,"end":65,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":37,"index":65}},
41 "static": false,
42 "key": {
43 "type": "Identifier",
44 "start":32,"end":35,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":7,"index":35},"identifierName":"foo"},
45 "name": "foo"
46 },
47 "computed": false,
48 "value": {
49 "type": "FunctionExpression",
50 "start":38,"end":64,"loc":{"start":{"line":3,"column":10,"index":38},"end":{"line":3,"column":36,"index":64}},
51 "id": {
52 "type": "Identifier",
53 "start":47,"end":48,"loc":{"start":{"line":3,"column":19,"index":47},"end":{"line":3,"column":20,"index":48},"identifierName":"f"},
54 "name": "f"
55 },
56 "generator": false,
57 "async": false,
58 "params": [],
59 "body": {
60 "type": "BlockStatement",
61 "start":51,"end":64,"loc":{"start":{"line":3,"column":23,"index":51},"end":{"line":3,"column":36,"index":64}},
62 "body": [
63 {
64 "type": "ExpressionStatement",
65 "start":53,"end":62,"loc":{"start":{"line":3,"column":25,"index":53},"end":{"line":3,"column":34,"index":62}},
66 "expression": {
67 "type": "Identifier",
68 "start":53,"end":62,"loc":{"start":{"line":3,"column":25,"index":53},"end":{"line":3,"column":34,"index":62},"identifierName":"arguments"},
69 "name": "arguments"
70 }
71 }
72 ],
73 "directives": []
74 }
75 }
76 }
77 ]
78 }
79 }
80 ],
81 "directives": []
82 }
83 }
84 ],
85 "directives": []
86 }
87 }