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": "boolean_cond.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "boolean_cond.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": "boolean_cond.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "boolean_cond.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": "boolean_cond.ets" 144 }, 145 "end": { 146 "line": 16, 147 "column": 14, 148 "program": "boolean_cond.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": "boolean_cond.ets" 170 }, 171 "end": { 172 "line": 16, 173 "column": 14, 174 "program": "boolean_cond.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": "boolean_cond.ets" 189 }, 190 "end": { 191 "line": 16, 192 "column": 22, 193 "program": "boolean_cond.ets" 194 } 195 } 196 }, 197 "body": { 198 "type": "BlockStatement", 199 "statements": [ 200 { 201 "type": "IfStatement", 202 "test": { 203 "type": "BooleanLiteral", 204 "value": true, 205 "loc": { 206 "start": { 207 "line": 17, 208 "column": 7, 209 "program": "boolean_cond.ets" 210 }, 211 "end": { 212 "line": 17, 213 "column": 11, 214 "program": "boolean_cond.ets" 215 } 216 } 217 }, 218 "consequent": { 219 "type": "BlockStatement", 220 "statements": [], 221 "loc": { 222 "start": { 223 "line": 17, 224 "column": 13, 225 "program": "boolean_cond.ets" 226 }, 227 "end": { 228 "line": 19, 229 "column": 4, 230 "program": "boolean_cond.ets" 231 } 232 } 233 }, 234 "alternate": null, 235 "loc": { 236 "start": { 237 "line": 17, 238 "column": 3, 239 "program": "boolean_cond.ets" 240 }, 241 "end": { 242 "line": 19, 243 "column": 4, 244 "program": "boolean_cond.ets" 245 } 246 } 247 }, 248 { 249 "type": "IfStatement", 250 "test": { 251 "type": "BinaryExpression", 252 "operator": ">", 253 "left": { 254 "type": "NumberLiteral", 255 "value": 1, 256 "loc": { 257 "start": { 258 "line": 20, 259 "column": 7, 260 "program": "boolean_cond.ets" 261 }, 262 "end": { 263 "line": 20, 264 "column": 8, 265 "program": "boolean_cond.ets" 266 } 267 } 268 }, 269 "right": { 270 "type": "NumberLiteral", 271 "value": 2, 272 "loc": { 273 "start": { 274 "line": 20, 275 "column": 11, 276 "program": "boolean_cond.ets" 277 }, 278 "end": { 279 "line": 20, 280 "column": 12, 281 "program": "boolean_cond.ets" 282 } 283 } 284 }, 285 "loc": { 286 "start": { 287 "line": 20, 288 "column": 7, 289 "program": "boolean_cond.ets" 290 }, 291 "end": { 292 "line": 20, 293 "column": 12, 294 "program": "boolean_cond.ets" 295 } 296 } 297 }, 298 "consequent": { 299 "type": "BlockStatement", 300 "statements": [], 301 "loc": { 302 "start": { 303 "line": 20, 304 "column": 14, 305 "program": "boolean_cond.ets" 306 }, 307 "end": { 308 "line": 22, 309 "column": 4, 310 "program": "boolean_cond.ets" 311 } 312 } 313 }, 314 "alternate": null, 315 "loc": { 316 "start": { 317 "line": 20, 318 "column": 3, 319 "program": "boolean_cond.ets" 320 }, 321 "end": { 322 "line": 22, 323 "column": 4, 324 "program": "boolean_cond.ets" 325 } 326 } 327 } 328 ], 329 "loc": { 330 "start": { 331 "line": 16, 332 "column": 23, 333 "program": "boolean_cond.ets" 334 }, 335 "end": { 336 "line": 23, 337 "column": 2, 338 "program": "boolean_cond.ets" 339 } 340 } 341 }, 342 "loc": { 343 "start": { 344 "line": 16, 345 "column": 10, 346 "program": "boolean_cond.ets" 347 }, 348 "end": { 349 "line": 23, 350 "column": 2, 351 "program": "boolean_cond.ets" 352 } 353 } 354 }, 355 "loc": { 356 "start": { 357 "line": 16, 358 "column": 10, 359 "program": "boolean_cond.ets" 360 }, 361 "end": { 362 "line": 23, 363 "column": 2, 364 "program": "boolean_cond.ets" 365 } 366 } 367 }, 368 "overloads": [], 369 "decorators": [], 370 "loc": { 371 "start": { 372 "line": 16, 373 "column": 1, 374 "program": "boolean_cond.ets" 375 }, 376 "end": { 377 "line": 23, 378 "column": 2, 379 "program": "boolean_cond.ets" 380 } 381 } 382 } 383 ], 384 "loc": { 385 "start": { 386 "line": 1, 387 "column": 1, 388 "program": "boolean_cond.ets" 389 }, 390 "end": { 391 "line": 1, 392 "column": 1, 393 "program": "boolean_cond.ets" 394 } 395 } 396 }, 397 "loc": { 398 "start": { 399 "line": 1, 400 "column": 1, 401 "program": "boolean_cond.ets" 402 }, 403 "end": { 404 "line": 1, 405 "column": 1, 406 "program": "boolean_cond.ets" 407 } 408 } 409 } 410 ], 411 "loc": { 412 "start": { 413 "line": 1, 414 "column": 1, 415 "program": "boolean_cond.ets" 416 }, 417 "end": { 418 "line": 23, 419 "column": 2, 420 "program": "boolean_cond.ets" 421 } 422 } 423} 424