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": "throwInTryStatement.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "throwInTryStatement.ets" 21 } 22 } 23 }, 24 "superClass": null, 25 "implements": [], 26 "body": [ 27 { 28 "type": "MethodDefinition", 29 "key": { 30 "type": "Identifier", 31 "name": "_$init$_", 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": "_$init$_", 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": "throwInTryStatement.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "throwInTryStatement.ets" 130 } 131 } 132 }, 133 { 134 "type": "MethodDefinition", 135 "key": { 136 "type": "Identifier", 137 "name": "main", 138 "decorators": [], 139 "loc": { 140 "start": { 141 "line": 16, 142 "column": 10, 143 "program": "throwInTryStatement.ets" 144 }, 145 "end": { 146 "line": 16, 147 "column": 14, 148 "program": "throwInTryStatement.ets" 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": "main", 164 "decorators": [], 165 "loc": { 166 "start": { 167 "line": 16, 168 "column": 10, 169 "program": "throwInTryStatement.ets" 170 }, 171 "end": { 172 "line": 16, 173 "column": 14, 174 "program": "throwInTryStatement.ets" 175 } 176 } 177 }, 178 "generator": false, 179 "async": false, 180 "expression": false, 181 "params": [], 182 "returnType": { 183 "type": "ETSPrimitiveType", 184 "loc": { 185 "start": { 186 "line": 16, 187 "column": 18, 188 "program": "throwInTryStatement.ets" 189 }, 190 "end": { 191 "line": 16, 192 "column": 22, 193 "program": "throwInTryStatement.ets" 194 } 195 } 196 }, 197 "body": { 198 "type": "BlockStatement", 199 "statements": [ 200 { 201 "type": "TryStatement", 202 "block": { 203 "type": "BlockStatement", 204 "statements": [ 205 { 206 "type": "ThrowStatement", 207 "argument": { 208 "type": "ETSNewClassInstanceExpression", 209 "typeReference": { 210 "type": "ETSTypeReference", 211 "part": { 212 "type": "ETSTypeReferencePart", 213 "name": { 214 "type": "Identifier", 215 "name": "Exception", 216 "decorators": [], 217 "loc": { 218 "start": { 219 "line": 18, 220 "column": 15, 221 "program": "throwInTryStatement.ets" 222 }, 223 "end": { 224 "line": 18, 225 "column": 24, 226 "program": "throwInTryStatement.ets" 227 } 228 } 229 }, 230 "loc": { 231 "start": { 232 "line": 18, 233 "column": 15, 234 "program": "throwInTryStatement.ets" 235 }, 236 "end": { 237 "line": 18, 238 "column": 25, 239 "program": "throwInTryStatement.ets" 240 } 241 } 242 }, 243 "loc": { 244 "start": { 245 "line": 18, 246 "column": 15, 247 "program": "throwInTryStatement.ets" 248 }, 249 "end": { 250 "line": 18, 251 "column": 25, 252 "program": "throwInTryStatement.ets" 253 } 254 } 255 }, 256 "arguments": [], 257 "loc": { 258 "start": { 259 "line": 18, 260 "column": 11, 261 "program": "throwInTryStatement.ets" 262 }, 263 "end": { 264 "line": 18, 265 "column": 27, 266 "program": "throwInTryStatement.ets" 267 } 268 } 269 }, 270 "loc": { 271 "start": { 272 "line": 18, 273 "column": 5, 274 "program": "throwInTryStatement.ets" 275 }, 276 "end": { 277 "line": 18, 278 "column": 27, 279 "program": "throwInTryStatement.ets" 280 } 281 } 282 } 283 ], 284 "loc": { 285 "start": { 286 "line": 17, 287 "column": 7, 288 "program": "throwInTryStatement.ets" 289 }, 290 "end": { 291 "line": 19, 292 "column": 4, 293 "program": "throwInTryStatement.ets" 294 } 295 } 296 }, 297 "handler": [ 298 { 299 "type": "CatchClause", 300 "body": { 301 "type": "BlockStatement", 302 "statements": [], 303 "loc": { 304 "start": { 305 "line": 19, 306 "column": 15, 307 "program": "throwInTryStatement.ets" 308 }, 309 "end": { 310 "line": 19, 311 "column": 17, 312 "program": "throwInTryStatement.ets" 313 } 314 } 315 }, 316 "param": { 317 "type": "Identifier", 318 "name": "e", 319 "decorators": [], 320 "loc": { 321 "start": { 322 "line": 19, 323 "column": 12, 324 "program": "throwInTryStatement.ets" 325 }, 326 "end": { 327 "line": 19, 328 "column": 13, 329 "program": "throwInTryStatement.ets" 330 } 331 } 332 }, 333 "loc": { 334 "start": { 335 "line": 19, 336 "column": 5, 337 "program": "throwInTryStatement.ets" 338 }, 339 "end": { 340 "line": 19, 341 "column": 17, 342 "program": "throwInTryStatement.ets" 343 } 344 } 345 } 346 ], 347 "finalizer": null, 348 "loc": { 349 "start": { 350 "line": 17, 351 "column": 3, 352 "program": "throwInTryStatement.ets" 353 }, 354 "end": { 355 "line": 19, 356 "column": 17, 357 "program": "throwInTryStatement.ets" 358 } 359 } 360 } 361 ], 362 "loc": { 363 "start": { 364 "line": 16, 365 "column": 23, 366 "program": "throwInTryStatement.ets" 367 }, 368 "end": { 369 "line": 20, 370 "column": 2, 371 "program": "throwInTryStatement.ets" 372 } 373 } 374 }, 375 "loc": { 376 "start": { 377 "line": 16, 378 "column": 10, 379 "program": "throwInTryStatement.ets" 380 }, 381 "end": { 382 "line": 20, 383 "column": 2, 384 "program": "throwInTryStatement.ets" 385 } 386 } 387 }, 388 "loc": { 389 "start": { 390 "line": 16, 391 "column": 10, 392 "program": "throwInTryStatement.ets" 393 }, 394 "end": { 395 "line": 20, 396 "column": 2, 397 "program": "throwInTryStatement.ets" 398 } 399 } 400 }, 401 "overloads": [], 402 "decorators": [], 403 "loc": { 404 "start": { 405 "line": 16, 406 "column": 1, 407 "program": "throwInTryStatement.ets" 408 }, 409 "end": { 410 "line": 20, 411 "column": 2, 412 "program": "throwInTryStatement.ets" 413 } 414 } 415 } 416 ], 417 "loc": { 418 "start": { 419 "line": 1, 420 "column": 1, 421 "program": "throwInTryStatement.ets" 422 }, 423 "end": { 424 "line": 1, 425 "column": 1, 426 "program": "throwInTryStatement.ets" 427 } 428 } 429 }, 430 "loc": { 431 "start": { 432 "line": 1, 433 "column": 1, 434 "program": "throwInTryStatement.ets" 435 }, 436 "end": { 437 "line": 1, 438 "column": 1, 439 "program": "throwInTryStatement.ets" 440 } 441 } 442 } 443 ], 444 "loc": { 445 "start": { 446 "line": 1, 447 "column": 1, 448 "program": "throwInTryStatement.ets" 449 }, 450 "end": { 451 "line": 21, 452 "column": 1, 453 "program": "throwInTryStatement.ets" 454 } 455 } 456} 457