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": "throwInThrowingFunction.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "throwInThrowingFunction.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": "throwInThrowingFunction.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "throwInThrowingFunction.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": "throwInThrowingFunction.ets" 231 }, 232 "end": { 233 "line": 1, 234 "column": 1, 235 "program": "throwInThrowingFunction.ets" 236 } 237 } 238 }, 239 { 240 "type": "MethodDefinition", 241 "key": { 242 "type": "Identifier", 243 "name": "TestFunction", 244 "decorators": [], 245 "loc": { 246 "start": { 247 "line": 16, 248 "column": 10, 249 "program": "throwInThrowingFunction.ets" 250 }, 251 "end": { 252 "line": 16, 253 "column": 22, 254 "program": "throwInThrowingFunction.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": "TestFunction", 270 "decorators": [], 271 "loc": { 272 "start": { 273 "line": 16, 274 "column": 10, 275 "program": "throwInThrowingFunction.ets" 276 }, 277 "end": { 278 "line": 16, 279 "column": 22, 280 "program": "throwInThrowingFunction.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": 16, 293 "column": 26, 294 "program": "throwInThrowingFunction.ets" 295 }, 296 "end": { 297 "line": 16, 298 "column": 30, 299 "program": "throwInThrowingFunction.ets" 300 } 301 } 302 }, 303 "body": { 304 "type": "BlockStatement", 305 "statements": [ 306 { 307 "type": "ThrowStatement", 308 "argument": { 309 "type": "ETSNewClassInstanceExpression", 310 "typeReference": { 311 "type": "ETSTypeReference", 312 "part": { 313 "type": "ETSTypeReferencePart", 314 "name": { 315 "type": "Identifier", 316 "name": "Exception", 317 "decorators": [], 318 "loc": { 319 "start": { 320 "line": 17, 321 "column": 13, 322 "program": "throwInThrowingFunction.ets" 323 }, 324 "end": { 325 "line": 17, 326 "column": 22, 327 "program": "throwInThrowingFunction.ets" 328 } 329 } 330 }, 331 "loc": { 332 "start": { 333 "line": 17, 334 "column": 13, 335 "program": "throwInThrowingFunction.ets" 336 }, 337 "end": { 338 "line": 17, 339 "column": 23, 340 "program": "throwInThrowingFunction.ets" 341 } 342 } 343 }, 344 "loc": { 345 "start": { 346 "line": 17, 347 "column": 13, 348 "program": "throwInThrowingFunction.ets" 349 }, 350 "end": { 351 "line": 17, 352 "column": 23, 353 "program": "throwInThrowingFunction.ets" 354 } 355 } 356 }, 357 "arguments": [], 358 "loc": { 359 "start": { 360 "line": 17, 361 "column": 9, 362 "program": "throwInThrowingFunction.ets" 363 }, 364 "end": { 365 "line": 17, 366 "column": 25, 367 "program": "throwInThrowingFunction.ets" 368 } 369 } 370 }, 371 "loc": { 372 "start": { 373 "line": 17, 374 "column": 3, 375 "program": "throwInThrowingFunction.ets" 376 }, 377 "end": { 378 "line": 17, 379 "column": 25, 380 "program": "throwInThrowingFunction.ets" 381 } 382 } 383 } 384 ], 385 "loc": { 386 "start": { 387 "line": 16, 388 "column": 38, 389 "program": "throwInThrowingFunction.ets" 390 }, 391 "end": { 392 "line": 18, 393 "column": 2, 394 "program": "throwInThrowingFunction.ets" 395 } 396 } 397 }, 398 "throwMarker": "throws", 399 "loc": { 400 "start": { 401 "line": 16, 402 "column": 10, 403 "program": "throwInThrowingFunction.ets" 404 }, 405 "end": { 406 "line": 18, 407 "column": 2, 408 "program": "throwInThrowingFunction.ets" 409 } 410 } 411 }, 412 "loc": { 413 "start": { 414 "line": 16, 415 "column": 10, 416 "program": "throwInThrowingFunction.ets" 417 }, 418 "end": { 419 "line": 18, 420 "column": 2, 421 "program": "throwInThrowingFunction.ets" 422 } 423 } 424 }, 425 "overloads": [], 426 "decorators": [], 427 "loc": { 428 "start": { 429 "line": 16, 430 "column": 1, 431 "program": "throwInThrowingFunction.ets" 432 }, 433 "end": { 434 "line": 18, 435 "column": 2, 436 "program": "throwInThrowingFunction.ets" 437 } 438 } 439 } 440 ], 441 "loc": { 442 "start": { 443 "line": 1, 444 "column": 1, 445 "program": "throwInThrowingFunction.ets" 446 }, 447 "end": { 448 "line": 1, 449 "column": 1, 450 "program": "throwInThrowingFunction.ets" 451 } 452 } 453 }, 454 "loc": { 455 "start": { 456 "line": 1, 457 "column": 1, 458 "program": "throwInThrowingFunction.ets" 459 }, 460 "end": { 461 "line": 1, 462 "column": 1, 463 "program": "throwInThrowingFunction.ets" 464 } 465 } 466 } 467 ], 468 "loc": { 469 "start": { 470 "line": 1, 471 "column": 1, 472 "program": "throwInThrowingFunction.ets" 473 }, 474 "end": { 475 "line": 19, 476 "column": 1, 477 "program": "throwInThrowingFunction.ets" 478 } 479 } 480} 481