Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-rest-parameter/object-method/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
16 "operator": "=",
17 "left": {
18 "type": "Identifier",
19 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"o"},
20 "name": "o"
21 },
22 "right": {
23 "type": "ObjectExpression",
24 "start":4,"end":31,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":31,"index":31}},
25 "properties": [
26 {
27 "type": "ObjectProperty",
28 "start":6,"end":29,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":29,"index":29}},
29 "method": false,
30 "key": {
31 "type": "Identifier",
32 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"f"},
33 "name": "f"
34 },
35 "computed": false,
36 "shorthand": false,
37 "value": {
38 "type": "FunctionExpression",
39 "start":9,"end":29,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":29,"index":29}},
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [
44 {
45 "type": "Identifier",
46 "start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19},"identifierName":"a"},
47 "name": "a"
48 },
49 {
50 "type": "RestElement",
51 "start":21,"end":25,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":25,"index":25}},
52 "argument": {
53 "type": "Identifier",
54 "start":24,"end":25,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":25,"index":25},"identifierName":"b"},
55 "name": "b"
56 }
57 }
58 ],
59 "body": {
60 "type": "BlockStatement",
61 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
62 "body": [],
63 "directives": []
64 }
65 }
66 }
67 ]
68 }
69 }
70 }
71 ],
72 "directives": []
73 }
74 }