Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
13 "expression": {
14 "type": "BinaryExpression",
15 "start":0,"end":49,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}},
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":49,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":49,"index":49}},
25 "async": false,
26 "body": {
27 "type": "BlockStatement",
28 "start":12,"end":49,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":49,"index":49}},
29 "body": [
30 {
31 "type": "ForStatement",
32 "start":14,"end":47,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":47,"index":47}},
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": "NumericLiteral",
47 "start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28}},
48 "extra": {
49 "rawValue": 0,
50 "raw": "0"
51 },
52 "value": 0
53 }
54 }
55 ],
56 "kind": "let"
57 },
58 "test": {
59 "type": "BinaryExpression",
60 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35}},
61 "left": {
62 "type": "Identifier",
63 "start":30,"end":31,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":31,"index":31},"identifierName":"i"},
64 "name": "i"
65 },
66 "operator": "<",
67 "right": {
68 "type": "Identifier",
69 "start":34,"end":35,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":35,"index":35},"identifierName":"n"},
70 "name": "n"
71 }
72 },
73 "update": {
74 "type": "AssignmentExpression",
75 "start":37,"end":43,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":43,"index":43}},
76 "operator": "+=",
77 "left": {
78 "type": "Identifier",
79 "start":37,"end":38,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":38,"index":38},"identifierName":"i"},
80 "name": "i"
81 },
82 "right": {
83 "type": "NumericLiteral",
84 "start":42,"end":43,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":43,"index":43}},
85 "extra": {
86 "rawValue": 1,
87 "raw": "1"
88 },
89 "value": 1
90 }
91 },
92 "body": {
93 "type": "ExpressionStatement",
94 "start":45,"end":47,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":47,"index":47}},
95 "expression": {
96 "type": "TopicReference",
97 "start":45,"end":46,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":46,"index":46}}
98 }
99 }
100 }
101 ],
102 "directives": []
103 }
104 }
105 }
106 }
107 ],
108 "directives": []
109 }
110 }