Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-hash-proposal-within-classic-for-statement-init/output.json

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