Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-hash-proposal-do-transform-for-classic-loop-and-topic-in-loop-head/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}},
13 "expression": {
14 "type": "BinaryExpression",
15 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}},
16 "left": {
17 "type": "Identifier",
18 "start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5},"identifierName":"value"},
19 "name": "value"
20 },
21 "operator": "|>",
22 "right": {
23 "type": "DoExpression",
24 "start":9,"end":59,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":59,"index":59}},
25 "async": false,
26 "body": {
27 "type": "BlockStatement",
28 "start":12,"end":59,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":59,"index":59}},
29 "body": [
30 {
31 "type": "ForStatement",
32 "start":14,"end":57,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":57,"index":57}},
33 "init": {
34 "type": "VariableDeclaration",
35 "start":19,"end":28,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":28,"index":28}},
36 "declarations": [
37 {
38 "type": "VariableDeclarator",
39 "start":23,"end":28,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":28,"index":28}},
40 "id": {
41 "type": "Identifier",
42 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24},"identifierName":"i"},
43 "name": "i"
44 },
45 "init": {
46 "type": "TopicReference",
47 "start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28}}
48 }
49 }
50 ],
51 "kind": "let"
52 },
53 "test": {
54 "type": "CallExpression",
55 "start":30,"end":45,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":45,"index":45}},
56 "callee": {
57 "type": "Identifier",
58 "start":30,"end":39,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":39,"index":39},"identifierName":"predicate"},
59 "name": "predicate"
60 },
61 "arguments": [
62 {
63 "type": "Identifier",
64 "start":40,"end":41,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":41,"index":41},"identifierName":"i"},
65 "name": "i"
66 },
67 {
68 "type": "TopicReference",
69 "start":43,"end":44,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":44,"index":44}}
70 }
71 ]
72 },
73 "update": {
74 "type": "AssignmentExpression",
75 "start":47,"end":53,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":53,"index":53}},
76 "operator": "+=",
77 "left": {
78 "type": "Identifier",
79 "start":47,"end":48,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":48,"index":48},"identifierName":"i"},
80 "name": "i"
81 },
82 "right": {
83 "type": "TopicReference",
84 "start":52,"end":53,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":53,"index":53}}
85 }
86 },
87 "body": {
88 "type": "ExpressionStatement",
89 "start":55,"end":57,"loc":{"start":{"line":1,"column":55,"index":55},"end":{"line":1,"column":57,"index":57}},
90 "expression": {
91 "type": "Identifier",
92 "start":55,"end":56,"loc":{"start":{"line":1,"column":55,"index":55},"end":{"line":1,"column":56,"index":56},"identifierName":"i"},
93 "name": "i"
94 }
95 }
96 }
97 ],
98 "directives": []
99 }
100 }
101 }
102 }
103 ],
104 "directives": []
105 }
106 }