Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-default-parameter-value/migrated_0002/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
13 "expression": {
14 "type": "AssignmentExpression",
15 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
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":"x"},
20 "name": "x"
21 },
22 "right": {
23 "type": "ObjectExpression",
24 "start":4,"end":27,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":27,"index":27}},
25 "properties": [
26 {
27 "type": "ObjectProperty",
28 "start":6,"end":25,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":25,"index":25}},
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":25,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":25,"index":25}},
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [
44 {
45 "type": "AssignmentPattern",
46 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21}},
47 "left": {
48 "type": "Identifier",
49 "start":18,"end":19,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":19,"index":19},"identifierName":"a"},
50 "name": "a"
51 },
52 "right": {
53 "type": "NumericLiteral",
54 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21}},
55 "extra": {
56 "rawValue": 1,
57 "raw": "1"
58 },
59 "value": 1
60 }
61 }
62 ],
63 "body": {
64 "type": "BlockStatement",
65 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
66 "body": [],
67 "directives": []
68 }
69 }
70 }
71 ]
72 }
73 }
74 }
75 ],
76 "directives": []
77 }
78 }