Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/arrow-functions/concise-body-binary-in/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":40}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":40}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":40}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":40,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":3,"column":2,"index":40}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"t"},
20 "name": "t"
21 },
22 "init": {
23 "type": "ArrowFunctionExpression",
24 "start":10,"end":40,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":2,"index":40}},
25 "id": null,
26 "generator": false,
27 "async": false,
28 "params": [],
29 "body": {
30 "type": "ObjectExpression",
31 "start":17,"end":39,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":3,"column":1,"index":39}},
32 "properties": [
33 {
34 "type": "ObjectProperty",
35 "start":21,"end":37,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":18,"index":37}},
36 "method": false,
37 "key": {
38 "type": "Identifier",
39 "start":21,"end":22,"loc":{"start":{"line":2,"column":2,"index":21},"end":{"line":2,"column":3,"index":22},"identifierName":"v"},
40 "name": "v"
41 },
42 "computed": false,
43 "shorthand": false,
44 "value": {
45 "type": "ArrowFunctionExpression",
46 "start":24,"end":37,"loc":{"start":{"line":2,"column":5,"index":24},"end":{"line":2,"column":18,"index":37}},
47 "id": null,
48 "generator": false,
49 "async": false,
50 "params": [
51 {
52 "type": "Identifier",
53 "start":25,"end":26,"loc":{"start":{"line":2,"column":6,"index":25},"end":{"line":2,"column":7,"index":26},"identifierName":"v"},
54 "name": "v"
55 }
56 ],
57 "body": {
58 "type": "BinaryExpression",
59 "start":31,"end":37,"loc":{"start":{"line":2,"column":12,"index":31},"end":{"line":2,"column":18,"index":37}},
60 "left": {
61 "type": "Identifier",
62 "start":31,"end":32,"loc":{"start":{"line":2,"column":12,"index":31},"end":{"line":2,"column":13,"index":32},"identifierName":"v"},
63 "name": "v"
64 },
65 "operator": "in",
66 "right": {
67 "type": "Identifier",
68 "start":36,"end":37,"loc":{"start":{"line":2,"column":17,"index":36},"end":{"line":2,"column":18,"index":37},"identifierName":"z"},
69 "name": "z"
70 }
71 }
72 }
73 }
74 ],
75 "extra": {
76 "parenthesized": true,
77 "parenStart": 16
78 }
79 }
80 }
81 }
82 ],
83 "kind": "const"
84 }
85 ],
86 "directives": []
87 }
88 }