Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
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":"f"},
20 "name": "f"
21 },
22 "right": {
23 "type": "FunctionExpression",
24 "start":4,"end":30,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":30,"index":30}},
25 "id": null,
26 "generator": false,
27 "async": false,
28 "params": [
29 {
30 "type": "AssignmentPattern",
31 "start":13,"end":26,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":26,"index":26}},
32 "left": {
33 "type": "ObjectPattern",
34 "start":13,"end":16,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":16,"index":16}},
35 "properties": [
36 {
37 "type": "ObjectProperty",
38 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15}},
39 "key": {
40 "type": "Identifier",
41 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"x"},
42 "name": "x"
43 },
44 "computed": false,
45 "method": false,
46 "shorthand": true,
47 "value": {
48 "type": "Identifier",
49 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"x"},
50 "name": "x"
51 },
52 "extra": {
53 "shorthand": true
54 }
55 }
56 ]
57 },
58 "right": {
59 "type": "ObjectExpression",
60 "start":19,"end":26,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":26,"index":26}},
61 "properties": [
62 {
63 "type": "ObjectProperty",
64 "start":20,"end":25,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":25,"index":25}},
65 "method": false,
66 "key": {
67 "type": "Identifier",
68 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"x"},
69 "name": "x"
70 },
71 "computed": false,
72 "shorthand": false,
73 "value": {
74 "type": "NumericLiteral",
75 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
76 "extra": {
77 "rawValue": 10,
78 "raw": "10"
79 },
80 "value": 10
81 }
82 }
83 ]
84 }
85 }
86 ],
87 "body": {
88 "type": "BlockStatement",
89 "start":28,"end":30,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":30,"index":30}},
90 "body": [],
91 "directives": []
92 }
93 }
94 }
95 }
96 ],
97 "directives": []
98 }
99 }