• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "ClassDeclaration",
6      "definition": {
7        "id": {
8          "type": "Identifier",
9          "name": "ETSGLOBAL",
10          "decorators": [],
11          "loc": {
12            "start": {
13              "line": 1,
14              "column": 1,
15              "program": "forUpdate.ets"
16            },
17            "end": {
18              "line": 1,
19              "column": 1,
20              "program": "forUpdate.ets"
21            }
22          }
23        },
24        "superClass": null,
25        "implements": [],
26        "body": [
27          {
28            "type": "MethodDefinition",
29            "key": {
30              "type": "Identifier",
31              "name": "main",
32              "decorators": [],
33              "loc": {
34                "start": {
35                  "line": 1,
36                  "column": 1,
37                  "program": null
38                },
39                "end": {
40                  "line": 1,
41                  "column": 1,
42                  "program": null
43                }
44              }
45            },
46            "kind": "method",
47            "accessibility": "public",
48            "static": true,
49            "optional": false,
50            "computed": false,
51            "value": {
52              "type": "FunctionExpression",
53              "function": {
54                "type": "ScriptFunction",
55                "id": {
56                  "type": "Identifier",
57                  "name": "main",
58                  "decorators": [],
59                  "loc": {
60                    "start": {
61                      "line": 1,
62                      "column": 1,
63                      "program": null
64                    },
65                    "end": {
66                      "line": 1,
67                      "column": 1,
68                      "program": null
69                    }
70                  }
71                },
72                "generator": false,
73                "async": false,
74                "expression": false,
75                "params": [],
76                "body": {
77                  "type": "BlockStatement",
78                  "statements": [],
79                  "loc": {
80                    "start": {
81                      "line": 1,
82                      "column": 1,
83                      "program": null
84                    },
85                    "end": {
86                      "line": 1,
87                      "column": 1,
88                      "program": null
89                    }
90                  }
91                },
92                "loc": {
93                  "start": {
94                    "line": 1,
95                    "column": 1,
96                    "program": null
97                  },
98                  "end": {
99                    "line": 1,
100                    "column": 1,
101                    "program": null
102                  }
103                }
104              },
105              "loc": {
106                "start": {
107                  "line": 1,
108                  "column": 1,
109                  "program": null
110                },
111                "end": {
112                  "line": 1,
113                  "column": 1,
114                  "program": null
115                }
116              }
117            },
118            "overloads": [],
119            "decorators": [],
120            "loc": {
121              "start": {
122                "line": 1,
123                "column": 1,
124                "program": "forUpdate.ets"
125              },
126              "end": {
127                "line": 1,
128                "column": 1,
129                "program": "forUpdate.ets"
130              }
131            }
132          },
133          {
134            "type": "MethodDefinition",
135            "key": {
136              "type": "Identifier",
137              "name": "_$init$_",
138              "decorators": [],
139              "loc": {
140                "start": {
141                  "line": 1,
142                  "column": 1,
143                  "program": null
144                },
145                "end": {
146                  "line": 1,
147                  "column": 1,
148                  "program": null
149                }
150              }
151            },
152            "kind": "method",
153            "accessibility": "public",
154            "static": true,
155            "optional": false,
156            "computed": false,
157            "value": {
158              "type": "FunctionExpression",
159              "function": {
160                "type": "ScriptFunction",
161                "id": {
162                  "type": "Identifier",
163                  "name": "_$init$_",
164                  "decorators": [],
165                  "loc": {
166                    "start": {
167                      "line": 1,
168                      "column": 1,
169                      "program": null
170                    },
171                    "end": {
172                      "line": 1,
173                      "column": 1,
174                      "program": null
175                    }
176                  }
177                },
178                "generator": false,
179                "async": false,
180                "expression": false,
181                "params": [],
182                "body": {
183                  "type": "BlockStatement",
184                  "statements": [],
185                  "loc": {
186                    "start": {
187                      "line": 1,
188                      "column": 1,
189                      "program": null
190                    },
191                    "end": {
192                      "line": 1,
193                      "column": 1,
194                      "program": null
195                    }
196                  }
197                },
198                "loc": {
199                  "start": {
200                    "line": 1,
201                    "column": 1,
202                    "program": null
203                  },
204                  "end": {
205                    "line": 1,
206                    "column": 1,
207                    "program": null
208                  }
209                }
210              },
211              "loc": {
212                "start": {
213                  "line": 1,
214                  "column": 1,
215                  "program": null
216                },
217                "end": {
218                  "line": 1,
219                  "column": 1,
220                  "program": null
221                }
222              }
223            },
224            "overloads": [],
225            "decorators": [],
226            "loc": {
227              "start": {
228                "line": 1,
229                "column": 1,
230                "program": "forUpdate.ets"
231              },
232              "end": {
233                "line": 1,
234                "column": 1,
235                "program": "forUpdate.ets"
236              }
237            }
238          },
239          {
240            "type": "MethodDefinition",
241            "key": {
242              "type": "Identifier",
243              "name": "foo",
244              "decorators": [],
245              "loc": {
246                "start": {
247                  "line": 17,
248                  "column": 11,
249                  "program": "forUpdate.ets"
250                },
251                "end": {
252                  "line": 17,
253                  "column": 14,
254                  "program": "forUpdate.ets"
255                }
256              }
257            },
258            "kind": "method",
259            "accessibility": "public",
260            "static": true,
261            "optional": false,
262            "computed": false,
263            "value": {
264              "type": "FunctionExpression",
265              "function": {
266                "type": "ScriptFunction",
267                "id": {
268                  "type": "Identifier",
269                  "name": "foo",
270                  "decorators": [],
271                  "loc": {
272                    "start": {
273                      "line": 17,
274                      "column": 11,
275                      "program": "forUpdate.ets"
276                    },
277                    "end": {
278                      "line": 17,
279                      "column": 14,
280                      "program": "forUpdate.ets"
281                    }
282                  }
283                },
284                "generator": false,
285                "async": false,
286                "expression": false,
287                "params": [],
288                "returnType": {
289                  "type": "ETSPrimitiveType",
290                  "loc": {
291                    "start": {
292                      "line": 17,
293                      "column": 18,
294                      "program": "forUpdate.ets"
295                    },
296                    "end": {
297                      "line": 17,
298                      "column": 22,
299                      "program": "forUpdate.ets"
300                    }
301                  }
302                },
303                "body": {
304                  "type": "BlockStatement",
305                  "statements": [
306                    {
307                      "type": "VariableDeclaration",
308                      "declarations": [
309                        {
310                          "type": "VariableDeclarator",
311                          "id": {
312                            "type": "Identifier",
313                            "name": "length",
314                            "decorators": [],
315                            "loc": {
316                              "start": {
317                                "line": 18,
318                                "column": 7,
319                                "program": "forUpdate.ets"
320                              },
321                              "end": {
322                                "line": 18,
323                                "column": 13,
324                                "program": "forUpdate.ets"
325                              }
326                            }
327                          },
328                          "init": {
329                            "type": "NumberLiteral",
330                            "value": 10,
331                            "loc": {
332                              "start": {
333                                "line": 18,
334                                "column": 16,
335                                "program": "forUpdate.ets"
336                              },
337                              "end": {
338                                "line": 18,
339                                "column": 18,
340                                "program": "forUpdate.ets"
341                              }
342                            }
343                          },
344                          "loc": {
345                            "start": {
346                              "line": 18,
347                              "column": 7,
348                              "program": "forUpdate.ets"
349                            },
350                            "end": {
351                              "line": 18,
352                              "column": 18,
353                              "program": "forUpdate.ets"
354                            }
355                          }
356                        }
357                      ],
358                      "kind": "let",
359                      "loc": {
360                        "start": {
361                          "line": 18,
362                          "column": 3,
363                          "program": "forUpdate.ets"
364                        },
365                        "end": {
366                          "line": 18,
367                          "column": 19,
368                          "program": "forUpdate.ets"
369                        }
370                      }
371                    },
372                    {
373                      "type": "ForUpdateStatement",
374                      "init": {
375                        "type": "VariableDeclaration",
376                        "declarations": [
377                          {
378                            "type": "VariableDeclarator",
379                            "id": {
380                              "type": "Identifier",
381                              "name": "i",
382                              "decorators": [],
383                              "loc": {
384                                "start": {
385                                  "line": 19,
386                                  "column": 12,
387                                  "program": "forUpdate.ets"
388                                },
389                                "end": {
390                                  "line": 19,
391                                  "column": 13,
392                                  "program": "forUpdate.ets"
393                                }
394                              }
395                            },
396                            "init": {
397                              "type": "NumberLiteral",
398                              "value": 0,
399                              "loc": {
400                                "start": {
401                                  "line": 19,
402                                  "column": 16,
403                                  "program": "forUpdate.ets"
404                                },
405                                "end": {
406                                  "line": 19,
407                                  "column": 17,
408                                  "program": "forUpdate.ets"
409                                }
410                              }
411                            },
412                            "loc": {
413                              "start": {
414                                "line": 19,
415                                "column": 12,
416                                "program": "forUpdate.ets"
417                              },
418                              "end": {
419                                "line": 19,
420                                "column": 17,
421                                "program": "forUpdate.ets"
422                              }
423                            }
424                          }
425                        ],
426                        "kind": "let",
427                        "loc": {
428                          "start": {
429                            "line": 19,
430                            "column": 8,
431                            "program": "forUpdate.ets"
432                          },
433                          "end": {
434                            "line": 19,
435                            "column": 17,
436                            "program": "forUpdate.ets"
437                          }
438                        }
439                      },
440                      "test": {
441                        "type": "BinaryExpression",
442                        "operator": "<",
443                        "left": {
444                          "type": "Identifier",
445                          "name": "i",
446                          "decorators": [],
447                          "loc": {
448                            "start": {
449                              "line": 19,
450                              "column": 19,
451                              "program": "forUpdate.ets"
452                            },
453                            "end": {
454                              "line": 19,
455                              "column": 20,
456                              "program": "forUpdate.ets"
457                            }
458                          }
459                        },
460                        "right": {
461                          "type": "BinaryExpression",
462                          "operator": "-",
463                          "left": {
464                            "type": "Identifier",
465                            "name": "length",
466                            "decorators": [],
467                            "loc": {
468                              "start": {
469                                "line": 19,
470                                "column": 24,
471                                "program": "forUpdate.ets"
472                              },
473                              "end": {
474                                "line": 19,
475                                "column": 30,
476                                "program": "forUpdate.ets"
477                              }
478                            }
479                          },
480                          "right": {
481                            "type": "NumberLiteral",
482                            "value": 2,
483                            "loc": {
484                              "start": {
485                                "line": 19,
486                                "column": 33,
487                                "program": "forUpdate.ets"
488                              },
489                              "end": {
490                                "line": 19,
491                                "column": 34,
492                                "program": "forUpdate.ets"
493                              }
494                            }
495                          },
496                          "loc": {
497                            "start": {
498                              "line": 19,
499                              "column": 23,
500                              "program": "forUpdate.ets"
501                            },
502                            "end": {
503                              "line": 19,
504                              "column": 35,
505                              "program": "forUpdate.ets"
506                            }
507                          }
508                        },
509                        "loc": {
510                          "start": {
511                            "line": 19,
512                            "column": 19,
513                            "program": "forUpdate.ets"
514                          },
515                          "end": {
516                            "line": 19,
517                            "column": 35,
518                            "program": "forUpdate.ets"
519                          }
520                        }
521                      },
522                      "update": {
523                        "type": "AssignmentExpression",
524                        "operator": "+=",
525                        "left": {
526                          "type": "Identifier",
527                          "name": "i",
528                          "decorators": [],
529                          "loc": {
530                            "start": {
531                              "line": 19,
532                              "column": 37,
533                              "program": "forUpdate.ets"
534                            },
535                            "end": {
536                              "line": 19,
537                              "column": 38,
538                              "program": "forUpdate.ets"
539                            }
540                          }
541                        },
542                        "right": {
543                          "type": "NumberLiteral",
544                          "value": 3,
545                          "loc": {
546                            "start": {
547                              "line": 19,
548                              "column": 42,
549                              "program": "forUpdate.ets"
550                            },
551                            "end": {
552                              "line": 19,
553                              "column": 43,
554                              "program": "forUpdate.ets"
555                            }
556                          }
557                        },
558                        "loc": {
559                          "start": {
560                            "line": 19,
561                            "column": 37,
562                            "program": "forUpdate.ets"
563                          },
564                          "end": {
565                            "line": 19,
566                            "column": 43,
567                            "program": "forUpdate.ets"
568                          }
569                        }
570                      },
571                      "body": {
572                        "type": "BlockStatement",
573                        "statements": [],
574                        "loc": {
575                          "start": {
576                            "line": 19,
577                            "column": 45,
578                            "program": "forUpdate.ets"
579                          },
580                          "end": {
581                            "line": 20,
582                            "column": 4,
583                            "program": "forUpdate.ets"
584                          }
585                        }
586                      },
587                      "loc": {
588                        "start": {
589                          "line": 19,
590                          "column": 3,
591                          "program": "forUpdate.ets"
592                        },
593                        "end": {
594                          "line": 20,
595                          "column": 4,
596                          "program": "forUpdate.ets"
597                        }
598                      }
599                    }
600                  ],
601                  "loc": {
602                    "start": {
603                      "line": 17,
604                      "column": 23,
605                      "program": "forUpdate.ets"
606                    },
607                    "end": {
608                      "line": 21,
609                      "column": 2,
610                      "program": "forUpdate.ets"
611                    }
612                  }
613                },
614                "loc": {
615                  "start": {
616                    "line": 17,
617                    "column": 11,
618                    "program": "forUpdate.ets"
619                  },
620                  "end": {
621                    "line": 21,
622                    "column": 2,
623                    "program": "forUpdate.ets"
624                  }
625                }
626              },
627              "loc": {
628                "start": {
629                  "line": 17,
630                  "column": 11,
631                  "program": "forUpdate.ets"
632                },
633                "end": {
634                  "line": 21,
635                  "column": 2,
636                  "program": "forUpdate.ets"
637                }
638              }
639            },
640            "overloads": [],
641            "decorators": [],
642            "loc": {
643              "start": {
644                "line": 17,
645                "column": 2,
646                "program": "forUpdate.ets"
647              },
648              "end": {
649                "line": 21,
650                "column": 2,
651                "program": "forUpdate.ets"
652              }
653            }
654          }
655        ],
656        "loc": {
657          "start": {
658            "line": 1,
659            "column": 1,
660            "program": "forUpdate.ets"
661          },
662          "end": {
663            "line": 1,
664            "column": 1,
665            "program": "forUpdate.ets"
666          }
667        }
668      },
669      "loc": {
670        "start": {
671          "line": 1,
672          "column": 1,
673          "program": "forUpdate.ets"
674        },
675        "end": {
676          "line": 1,
677          "column": 1,
678          "program": "forUpdate.ets"
679        }
680      }
681    }
682  ],
683  "loc": {
684    "start": {
685      "line": 1,
686      "column": 1,
687      "program": "forUpdate.ets"
688    },
689    "end": {
690      "line": 22,
691      "column": 1,
692      "program": "forUpdate.ets"
693    }
694  }
695}
696