1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ImportDeclaration", 6 "source": { 7 "type": "StringLiteral", 8 "value": "./classdef", 9 "loc": { 10 "start": { 11 "line": 16, 12 "column": 20 13 }, 14 "end": { 15 "line": 16, 16 "column": 32 17 } 18 } 19 }, 20 "specifiers": [ 21 { 22 "type": "ImportSpecifier", 23 "local": { 24 "type": "Identifier", 25 "name": "Demo", 26 "decorators": [], 27 "loc": { 28 "start": { 29 "line": 16, 30 "column": 9 31 }, 32 "end": { 33 "line": 16, 34 "column": 13 35 } 36 } 37 }, 38 "imported": { 39 "type": "Identifier", 40 "name": "Demo", 41 "decorators": [], 42 "loc": { 43 "start": { 44 "line": 16, 45 "column": 9 46 }, 47 "end": { 48 "line": 16, 49 "column": 13 50 } 51 } 52 }, 53 "loc": { 54 "start": { 55 "line": 16, 56 "column": 9 57 }, 58 "end": { 59 "line": 16, 60 "column": 13 61 } 62 } 63 } 64 ], 65 "loc": { 66 "start": { 67 "line": 16, 68 "column": 1 69 }, 70 "end": { 71 "line": 16, 72 "column": 32 73 } 74 } 75 }, 76 { 77 "type": "ClassDeclaration", 78 "definition": { 79 "id": { 80 "type": "Identifier", 81 "name": "ETSGLOBAL", 82 "decorators": [], 83 "loc": { 84 "start": { 85 "line": 1, 86 "column": 1 87 }, 88 "end": { 89 "line": 1, 90 "column": 1 91 } 92 } 93 }, 94 "superClass": null, 95 "implements": [], 96 "body": [ 97 { 98 "type": "MethodDefinition", 99 "key": { 100 "type": "Identifier", 101 "name": "_$init$_", 102 "decorators": [], 103 "loc": { 104 "start": { 105 "line": 1, 106 "column": 1 107 }, 108 "end": { 109 "line": 1, 110 "column": 1 111 } 112 } 113 }, 114 "kind": "method", 115 "accessibility": "public", 116 "static": true, 117 "optional": false, 118 "computed": false, 119 "value": { 120 "type": "FunctionExpression", 121 "function": { 122 "type": "ScriptFunction", 123 "id": { 124 "type": "Identifier", 125 "name": "_$init$_", 126 "decorators": [], 127 "loc": { 128 "start": { 129 "line": 1, 130 "column": 1 131 }, 132 "end": { 133 "line": 1, 134 "column": 1 135 } 136 } 137 }, 138 "generator": false, 139 "async": false, 140 "expression": false, 141 "params": [], 142 "body": { 143 "type": "BlockStatement", 144 "statements": [], 145 "loc": { 146 "start": { 147 "line": 1, 148 "column": 1 149 }, 150 "end": { 151 "line": 1, 152 "column": 1 153 } 154 } 155 }, 156 "loc": { 157 "start": { 158 "line": 1, 159 "column": 1 160 }, 161 "end": { 162 "line": 1, 163 "column": 1 164 } 165 } 166 }, 167 "loc": { 168 "start": { 169 "line": 1, 170 "column": 1 171 }, 172 "end": { 173 "line": 1, 174 "column": 1 175 } 176 } 177 }, 178 "overloads": [], 179 "decorators": [], 180 "loc": { 181 "start": { 182 "line": 1, 183 "column": 1 184 }, 185 "end": { 186 "line": 1, 187 "column": 1 188 } 189 } 190 }, 191 { 192 "type": "MethodDefinition", 193 "key": { 194 "type": "Identifier", 195 "name": "getDate", 196 "decorators": [], 197 "loc": { 198 "start": { 199 "line": 18, 200 "column": 17 201 }, 202 "end": { 203 "line": 18, 204 "column": 24 205 } 206 } 207 }, 208 "kind": "method", 209 "accessibility": "public", 210 "static": true, 211 "optional": false, 212 "computed": false, 213 "value": { 214 "type": "FunctionExpression", 215 "function": { 216 "type": "ScriptFunction", 217 "id": { 218 "type": "Identifier", 219 "name": "getDate", 220 "decorators": [], 221 "loc": { 222 "start": { 223 "line": 18, 224 "column": 17 225 }, 226 "end": { 227 "line": 18, 228 "column": 24 229 } 230 } 231 }, 232 "generator": false, 233 "async": false, 234 "expression": false, 235 "params": [], 236 "body": { 237 "type": "BlockStatement", 238 "statements": [ 239 { 240 "type": "VariableDeclaration", 241 "declarations": [ 242 { 243 "type": "VariableDeclarator", 244 "id": { 245 "type": "Identifier", 246 "name": "a", 247 "typeAnnotation": { 248 "type": "ETSTypeReference", 249 "part": { 250 "type": "ETSTypeReferencePart", 251 "name": { 252 "type": "Identifier", 253 "name": "Demo", 254 "decorators": [], 255 "loc": { 256 "start": { 257 "line": 19, 258 "column": 13 259 }, 260 "end": { 261 "line": 19, 262 "column": 17 263 } 264 } 265 }, 266 "loc": { 267 "start": { 268 "line": 19, 269 "column": 13 270 }, 271 "end": { 272 "line": 19, 273 "column": 19 274 } 275 } 276 }, 277 "loc": { 278 "start": { 279 "line": 19, 280 "column": 13 281 }, 282 "end": { 283 "line": 19, 284 "column": 19 285 } 286 } 287 }, 288 "decorators": [], 289 "loc": { 290 "start": { 291 "line": 19, 292 "column": 9 293 }, 294 "end": { 295 "line": 19, 296 "column": 10 297 } 298 } 299 }, 300 "init": { 301 "type": "ETSNewClassInstanceExpression", 302 "typeReference": { 303 "type": "ETSTypeReference", 304 "part": { 305 "type": "ETSTypeReferencePart", 306 "name": { 307 "type": "Identifier", 308 "name": "Demo", 309 "decorators": [], 310 "loc": { 311 "start": { 312 "line": 19, 313 "column": 24 314 }, 315 "end": { 316 "line": 19, 317 "column": 28 318 } 319 } 320 }, 321 "loc": { 322 "start": { 323 "line": 19, 324 "column": 24 325 }, 326 "end": { 327 "line": 19, 328 "column": 29 329 } 330 } 331 }, 332 "loc": { 333 "start": { 334 "line": 19, 335 "column": 24 336 }, 337 "end": { 338 "line": 19, 339 "column": 29 340 } 341 } 342 }, 343 "arguments": [], 344 "loc": { 345 "start": { 346 "line": 19, 347 "column": 20 348 }, 349 "end": { 350 "line": 19, 351 "column": 31 352 } 353 } 354 }, 355 "loc": { 356 "start": { 357 "line": 19, 358 "column": 9 359 }, 360 "end": { 361 "line": 19, 362 "column": 31 363 } 364 } 365 } 366 ], 367 "kind": "let", 368 "loc": { 369 "start": { 370 "line": 19, 371 "column": 5 372 }, 373 "end": { 374 "line": 19, 375 "column": 31 376 } 377 } 378 }, 379 { 380 "type": "ExpressionStatement", 381 "expression": { 382 "type": "CallExpression", 383 "callee": { 384 "type": "MemberExpression", 385 "object": { 386 "type": "Identifier", 387 "name": "console", 388 "decorators": [], 389 "loc": { 390 "start": { 391 "line": 20, 392 "column": 5 393 }, 394 "end": { 395 "line": 20, 396 "column": 12 397 } 398 } 399 }, 400 "property": { 401 "type": "Identifier", 402 "name": "println", 403 "decorators": [], 404 "loc": { 405 "start": { 406 "line": 20, 407 "column": 13 408 }, 409 "end": { 410 "line": 20, 411 "column": 20 412 } 413 } 414 }, 415 "computed": false, 416 "optional": false, 417 "loc": { 418 "start": { 419 "line": 20, 420 "column": 5 421 }, 422 "end": { 423 "line": 20, 424 "column": 20 425 } 426 } 427 }, 428 "arguments": [ 429 { 430 "type": "StringLiteral", 431 "value": "2", 432 "loc": { 433 "start": { 434 "line": 20, 435 "column": 21 436 }, 437 "end": { 438 "line": 20, 439 "column": 24 440 } 441 } 442 } 443 ], 444 "optional": false, 445 "loc": { 446 "start": { 447 "line": 20, 448 "column": 5 449 }, 450 "end": { 451 "line": 20, 452 "column": 25 453 } 454 } 455 }, 456 "loc": { 457 "start": { 458 "line": 20, 459 "column": 5 460 }, 461 "end": { 462 "line": 20, 463 "column": 25 464 } 465 } 466 } 467 ], 468 "loc": { 469 "start": { 470 "line": 18, 471 "column": 26 472 }, 473 "end": { 474 "line": 21, 475 "column": 2 476 } 477 } 478 }, 479 "loc": { 480 "start": { 481 "line": 18, 482 "column": 24 483 }, 484 "end": { 485 "line": 21, 486 "column": 2 487 } 488 } 489 }, 490 "loc": { 491 "start": { 492 "line": 18, 493 "column": 24 494 }, 495 "end": { 496 "line": 21, 497 "column": 2 498 } 499 } 500 }, 501 "overloads": [], 502 "decorators": [], 503 "loc": { 504 "start": { 505 "line": 18, 506 "column": 8 507 }, 508 "end": { 509 "line": 21, 510 "column": 2 511 } 512 } 513 } 514 ], 515 "loc": { 516 "start": { 517 "line": 1, 518 "column": 1 519 }, 520 "end": { 521 "line": 1, 522 "column": 1 523 } 524 } 525 }, 526 "loc": { 527 "start": { 528 "line": 1, 529 "column": 1 530 }, 531 "end": { 532 "line": 1, 533 "column": 1 534 } 535 } 536 } 537 ], 538 "loc": { 539 "start": { 540 "line": 1, 541 "column": 1 542 }, 543 "end": { 544 "line": 22, 545 "column": 1 546 } 547 } 548} 549