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