Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/355/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"x"},
16 "name": "x"
17 },
18 "generator": false,
19 "async": false,
20 "params": [
21 {
22 "type": "ObjectPattern",
23 "start":11,"end":25,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":25,"index":25}},
24 "properties": [
25 {
26 "type": "ObjectProperty",
27 "start":13,"end":23,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":23,"index":23}},
28 "key": {
29 "type": "Identifier",
30 "start":13,"end":16,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":16,"index":16},"identifierName":"set"},
31 "name": "set"
32 },
33 "computed": false,
34 "method": false,
35 "shorthand": true,
36 "value": {
37 "type": "AssignmentPattern",
38 "start":13,"end":23,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":23,"index":23}},
39 "left": {
40 "type": "Identifier",
41 "start":13,"end":16,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":16,"index":16},"identifierName":"set"},
42 "name": "set"
43 },
44 "right": {
45 "type": "NullLiteral",
46 "start":19,"end":23,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":23,"index":23}}
47 }
48 },
49 "extra": {
50 "shorthand": true
51 }
52 }
53 ]
54 }
55 ],
56 "body": {
57 "type": "BlockStatement",
58 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
59 "body": [],
60 "directives": []
61 }
62 }
63 ],
64 "directives": []
65 }
66 }