1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "b", 12 "decorators": [], 13 "loc": { 14 "start": { 15 "line": 16, 16 "column": 5, 17 "program": "for_update_statement.ts" 18 }, 19 "end": { 20 "line": 16, 21 "column": 6, 22 "program": "for_update_statement.ts" 23 } 24 } 25 }, 26 "init": { 27 "type": "NumberLiteral", 28 "value": 0, 29 "loc": { 30 "start": { 31 "line": 16, 32 "column": 9, 33 "program": "for_update_statement.ts" 34 }, 35 "end": { 36 "line": 16, 37 "column": 10, 38 "program": "for_update_statement.ts" 39 } 40 } 41 }, 42 "loc": { 43 "start": { 44 "line": 16, 45 "column": 5, 46 "program": "for_update_statement.ts" 47 }, 48 "end": { 49 "line": 16, 50 "column": 10, 51 "program": "for_update_statement.ts" 52 } 53 } 54 } 55 ], 56 "kind": "let", 57 "loc": { 58 "start": { 59 "line": 16, 60 "column": 1, 61 "program": "for_update_statement.ts" 62 }, 63 "end": { 64 "line": 16, 65 "column": 10, 66 "program": "for_update_statement.ts" 67 } 68 } 69 }, 70 { 71 "type": "ForUpdateStatement", 72 "init": { 73 "type": "VariableDeclaration", 74 "declarations": [ 75 { 76 "type": "VariableDeclarator", 77 "id": { 78 "type": "Identifier", 79 "name": "i", 80 "typeAnnotation": { 81 "type": "TSNumberKeyword", 82 "loc": { 83 "start": { 84 "line": 18, 85 "column": 13, 86 "program": "for_update_statement.ts" 87 }, 88 "end": { 89 "line": 18, 90 "column": 19, 91 "program": "for_update_statement.ts" 92 } 93 } 94 }, 95 "decorators": [], 96 "loc": { 97 "start": { 98 "line": 18, 99 "column": 10, 100 "program": "for_update_statement.ts" 101 }, 102 "end": { 103 "line": 18, 104 "column": 11, 105 "program": "for_update_statement.ts" 106 } 107 } 108 }, 109 "init": { 110 "type": "NumberLiteral", 111 "value": 1, 112 "loc": { 113 "start": { 114 "line": 18, 115 "column": 22, 116 "program": "for_update_statement.ts" 117 }, 118 "end": { 119 "line": 18, 120 "column": 23, 121 "program": "for_update_statement.ts" 122 } 123 } 124 }, 125 "loc": { 126 "start": { 127 "line": 18, 128 "column": 10, 129 "program": "for_update_statement.ts" 130 }, 131 "end": { 132 "line": 18, 133 "column": 23, 134 "program": "for_update_statement.ts" 135 } 136 } 137 } 138 ], 139 "kind": "let", 140 "loc": { 141 "start": { 142 "line": 18, 143 "column": 6, 144 "program": "for_update_statement.ts" 145 }, 146 "end": { 147 "line": 18, 148 "column": 23, 149 "program": "for_update_statement.ts" 150 } 151 } 152 }, 153 "test": { 154 "type": "BinaryExpression", 155 "operator": "<", 156 "left": { 157 "type": "Identifier", 158 "name": "i", 159 "decorators": [], 160 "loc": { 161 "start": { 162 "line": 18, 163 "column": 25, 164 "program": "for_update_statement.ts" 165 }, 166 "end": { 167 "line": 18, 168 "column": 26, 169 "program": "for_update_statement.ts" 170 } 171 } 172 }, 173 "right": { 174 "type": "NumberLiteral", 175 "value": 10, 176 "loc": { 177 "start": { 178 "line": 18, 179 "column": 29, 180 "program": "for_update_statement.ts" 181 }, 182 "end": { 183 "line": 18, 184 "column": 31, 185 "program": "for_update_statement.ts" 186 } 187 } 188 }, 189 "loc": { 190 "start": { 191 "line": 18, 192 "column": 25, 193 "program": "for_update_statement.ts" 194 }, 195 "end": { 196 "line": 18, 197 "column": 31, 198 "program": "for_update_statement.ts" 199 } 200 } 201 }, 202 "update": { 203 "type": "UpdateExpression", 204 "operator": "++", 205 "prefix": false, 206 "argument": { 207 "type": "Identifier", 208 "name": "i", 209 "decorators": [], 210 "loc": { 211 "start": { 212 "line": 18, 213 "column": 33, 214 "program": "for_update_statement.ts" 215 }, 216 "end": { 217 "line": 18, 218 "column": 34, 219 "program": "for_update_statement.ts" 220 } 221 } 222 }, 223 "loc": { 224 "start": { 225 "line": 18, 226 "column": 33, 227 "program": "for_update_statement.ts" 228 }, 229 "end": { 230 "line": 18, 231 "column": 36, 232 "program": "for_update_statement.ts" 233 } 234 } 235 }, 236 "body": { 237 "type": "BlockStatement", 238 "statements": [ 239 { 240 "type": "ExpressionStatement", 241 "expression": { 242 "type": "AssignmentExpression", 243 "operator": "=", 244 "left": { 245 "type": "Identifier", 246 "name": "b", 247 "decorators": [], 248 "loc": { 249 "start": { 250 "line": 19, 251 "column": 4, 252 "program": "for_update_statement.ts" 253 }, 254 "end": { 255 "line": 19, 256 "column": 5, 257 "program": "for_update_statement.ts" 258 } 259 } 260 }, 261 "right": { 262 "type": "BinaryExpression", 263 "operator": "+", 264 "left": { 265 "type": "Identifier", 266 "name": "b", 267 "decorators": [], 268 "loc": { 269 "start": { 270 "line": 19, 271 "column": 8, 272 "program": "for_update_statement.ts" 273 }, 274 "end": { 275 "line": 19, 276 "column": 9, 277 "program": "for_update_statement.ts" 278 } 279 } 280 }, 281 "right": { 282 "type": "Identifier", 283 "name": "i", 284 "decorators": [], 285 "loc": { 286 "start": { 287 "line": 19, 288 "column": 12, 289 "program": "for_update_statement.ts" 290 }, 291 "end": { 292 "line": 19, 293 "column": 13, 294 "program": "for_update_statement.ts" 295 } 296 } 297 }, 298 "loc": { 299 "start": { 300 "line": 19, 301 "column": 8, 302 "program": "for_update_statement.ts" 303 }, 304 "end": { 305 "line": 19, 306 "column": 13, 307 "program": "for_update_statement.ts" 308 } 309 } 310 }, 311 "loc": { 312 "start": { 313 "line": 19, 314 "column": 4, 315 "program": "for_update_statement.ts" 316 }, 317 "end": { 318 "line": 19, 319 "column": 13, 320 "program": "for_update_statement.ts" 321 } 322 } 323 }, 324 "loc": { 325 "start": { 326 "line": 19, 327 "column": 4, 328 "program": "for_update_statement.ts" 329 }, 330 "end": { 331 "line": 19, 332 "column": 13, 333 "program": "for_update_statement.ts" 334 } 335 } 336 } 337 ], 338 "loc": { 339 "start": { 340 "line": 18, 341 "column": 38, 342 "program": "for_update_statement.ts" 343 }, 344 "end": { 345 "line": 20, 346 "column": 2, 347 "program": "for_update_statement.ts" 348 } 349 } 350 }, 351 "loc": { 352 "start": { 353 "line": 18, 354 "column": 1, 355 "program": "for_update_statement.ts" 356 }, 357 "end": { 358 "line": 20, 359 "column": 2, 360 "program": "for_update_statement.ts" 361 } 362 } 363 } 364 ], 365 "loc": { 366 "start": { 367 "line": 1, 368 "column": 1, 369 "program": "for_update_statement.ts" 370 }, 371 "end": { 372 "line": 21, 373 "column": 1, 374 "program": "for_update_statement.ts" 375 } 376 } 377} 378