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