• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_bitwise.ets"
16            },
17            "end": {
18              "line": 1,
19              "column": 1,
20              "program": "Boolean_bitwise.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_bitwise.ets"
125              },
126              "end": {
127                "line": 1,
128                "column": 1,
129                "program": "Boolean_bitwise.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_bitwise.ets"
144                },
145                "end": {
146                  "line": 16,
147                  "column": 14,
148                  "program": "Boolean_bitwise.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_bitwise.ets"
170                    },
171                    "end": {
172                      "line": 16,
173                      "column": 14,
174                      "program": "Boolean_bitwise.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_bitwise.ets"
189                    },
190                    "end": {
191                      "line": 16,
192                      "column": 22,
193                      "program": "Boolean_bitwise.ets"
194                    }
195                  }
196                },
197                "body": {
198                  "type": "BlockStatement",
199                  "statements": [
200                    {
201                      "type": "VariableDeclaration",
202                      "declarations": [
203                        {
204                          "type": "VariableDeclarator",
205                          "id": {
206                            "type": "Identifier",
207                            "name": "x",
208                            "typeAnnotation": {
209                              "type": "ETSTypeReference",
210                              "part": {
211                                "type": "ETSTypeReferencePart",
212                                "name": {
213                                  "type": "Identifier",
214                                  "name": "Boolean",
215                                  "decorators": [],
216                                  "loc": {
217                                    "start": {
218                                      "line": 17,
219                                      "column": 10,
220                                      "program": "Boolean_bitwise.ets"
221                                    },
222                                    "end": {
223                                      "line": 17,
224                                      "column": 17,
225                                      "program": "Boolean_bitwise.ets"
226                                    }
227                                  }
228                                },
229                                "loc": {
230                                  "start": {
231                                    "line": 17,
232                                    "column": 10,
233                                    "program": "Boolean_bitwise.ets"
234                                  },
235                                  "end": {
236                                    "line": 17,
237                                    "column": 19,
238                                    "program": "Boolean_bitwise.ets"
239                                  }
240                                }
241                              },
242                              "loc": {
243                                "start": {
244                                  "line": 17,
245                                  "column": 10,
246                                  "program": "Boolean_bitwise.ets"
247                                },
248                                "end": {
249                                  "line": 17,
250                                  "column": 19,
251                                  "program": "Boolean_bitwise.ets"
252                                }
253                              }
254                            },
255                            "decorators": [],
256                            "loc": {
257                              "start": {
258                                "line": 17,
259                                "column": 7,
260                                "program": "Boolean_bitwise.ets"
261                              },
262                              "end": {
263                                "line": 17,
264                                "column": 8,
265                                "program": "Boolean_bitwise.ets"
266                              }
267                            }
268                          },
269                          "init": {
270                            "type": "BooleanLiteral",
271                            "value": true,
272                            "loc": {
273                              "start": {
274                                "line": 17,
275                                "column": 20,
276                                "program": "Boolean_bitwise.ets"
277                              },
278                              "end": {
279                                "line": 17,
280                                "column": 24,
281                                "program": "Boolean_bitwise.ets"
282                              }
283                            }
284                          },
285                          "loc": {
286                            "start": {
287                              "line": 17,
288                              "column": 7,
289                              "program": "Boolean_bitwise.ets"
290                            },
291                            "end": {
292                              "line": 17,
293                              "column": 24,
294                              "program": "Boolean_bitwise.ets"
295                            }
296                          }
297                        }
298                      ],
299                      "kind": "let",
300                      "loc": {
301                        "start": {
302                          "line": 17,
303                          "column": 3,
304                          "program": "Boolean_bitwise.ets"
305                        },
306                        "end": {
307                          "line": 17,
308                          "column": 25,
309                          "program": "Boolean_bitwise.ets"
310                        }
311                      }
312                    },
313                    {
314                      "type": "VariableDeclaration",
315                      "declarations": [
316                        {
317                          "type": "VariableDeclarator",
318                          "id": {
319                            "type": "Identifier",
320                            "name": "y",
321                            "typeAnnotation": {
322                              "type": "ETSTypeReference",
323                              "part": {
324                                "type": "ETSTypeReferencePart",
325                                "name": {
326                                  "type": "Identifier",
327                                  "name": "Boolean",
328                                  "decorators": [],
329                                  "loc": {
330                                    "start": {
331                                      "line": 18,
332                                      "column": 10,
333                                      "program": "Boolean_bitwise.ets"
334                                    },
335                                    "end": {
336                                      "line": 18,
337                                      "column": 17,
338                                      "program": "Boolean_bitwise.ets"
339                                    }
340                                  }
341                                },
342                                "loc": {
343                                  "start": {
344                                    "line": 18,
345                                    "column": 10,
346                                    "program": "Boolean_bitwise.ets"
347                                  },
348                                  "end": {
349                                    "line": 18,
350                                    "column": 19,
351                                    "program": "Boolean_bitwise.ets"
352                                  }
353                                }
354                              },
355                              "loc": {
356                                "start": {
357                                  "line": 18,
358                                  "column": 10,
359                                  "program": "Boolean_bitwise.ets"
360                                },
361                                "end": {
362                                  "line": 18,
363                                  "column": 19,
364                                  "program": "Boolean_bitwise.ets"
365                                }
366                              }
367                            },
368                            "decorators": [],
369                            "loc": {
370                              "start": {
371                                "line": 18,
372                                "column": 7,
373                                "program": "Boolean_bitwise.ets"
374                              },
375                              "end": {
376                                "line": 18,
377                                "column": 8,
378                                "program": "Boolean_bitwise.ets"
379                              }
380                            }
381                          },
382                          "init": {
383                            "type": "BooleanLiteral",
384                            "value": false,
385                            "loc": {
386                              "start": {
387                                "line": 18,
388                                "column": 20,
389                                "program": "Boolean_bitwise.ets"
390                              },
391                              "end": {
392                                "line": 18,
393                                "column": 25,
394                                "program": "Boolean_bitwise.ets"
395                              }
396                            }
397                          },
398                          "loc": {
399                            "start": {
400                              "line": 18,
401                              "column": 7,
402                              "program": "Boolean_bitwise.ets"
403                            },
404                            "end": {
405                              "line": 18,
406                              "column": 25,
407                              "program": "Boolean_bitwise.ets"
408                            }
409                          }
410                        }
411                      ],
412                      "kind": "let",
413                      "loc": {
414                        "start": {
415                          "line": 18,
416                          "column": 3,
417                          "program": "Boolean_bitwise.ets"
418                        },
419                        "end": {
420                          "line": 18,
421                          "column": 26,
422                          "program": "Boolean_bitwise.ets"
423                        }
424                      }
425                    },
426                    {
427                      "type": "VariableDeclaration",
428                      "declarations": [
429                        {
430                          "type": "VariableDeclarator",
431                          "id": {
432                            "type": "Identifier",
433                            "name": "dest",
434                            "typeAnnotation": {
435                              "type": "ETSTypeReference",
436                              "part": {
437                                "type": "ETSTypeReferencePart",
438                                "name": {
439                                  "type": "Identifier",
440                                  "name": "Boolean",
441                                  "decorators": [],
442                                  "loc": {
443                                    "start": {
444                                      "line": 19,
445                                      "column": 13,
446                                      "program": "Boolean_bitwise.ets"
447                                    },
448                                    "end": {
449                                      "line": 19,
450                                      "column": 20,
451                                      "program": "Boolean_bitwise.ets"
452                                    }
453                                  }
454                                },
455                                "loc": {
456                                  "start": {
457                                    "line": 19,
458                                    "column": 13,
459                                    "program": "Boolean_bitwise.ets"
460                                  },
461                                  "end": {
462                                    "line": 19,
463                                    "column": 22,
464                                    "program": "Boolean_bitwise.ets"
465                                  }
466                                }
467                              },
468                              "loc": {
469                                "start": {
470                                  "line": 19,
471                                  "column": 13,
472                                  "program": "Boolean_bitwise.ets"
473                                },
474                                "end": {
475                                  "line": 19,
476                                  "column": 22,
477                                  "program": "Boolean_bitwise.ets"
478                                }
479                              }
480                            },
481                            "decorators": [],
482                            "loc": {
483                              "start": {
484                                "line": 19,
485                                "column": 7,
486                                "program": "Boolean_bitwise.ets"
487                              },
488                              "end": {
489                                "line": 19,
490                                "column": 11,
491                                "program": "Boolean_bitwise.ets"
492                              }
493                            }
494                          },
495                          "init": {
496                            "type": "BinaryExpression",
497                            "operator": "|",
498                            "left": {
499                              "type": "Identifier",
500                              "name": "x",
501                              "decorators": [],
502                              "loc": {
503                                "start": {
504                                  "line": 19,
505                                  "column": 23,
506                                  "program": "Boolean_bitwise.ets"
507                                },
508                                "end": {
509                                  "line": 19,
510                                  "column": 24,
511                                  "program": "Boolean_bitwise.ets"
512                                }
513                              }
514                            },
515                            "right": {
516                              "type": "Identifier",
517                              "name": "y",
518                              "decorators": [],
519                              "loc": {
520                                "start": {
521                                  "line": 19,
522                                  "column": 27,
523                                  "program": "Boolean_bitwise.ets"
524                                },
525                                "end": {
526                                  "line": 19,
527                                  "column": 28,
528                                  "program": "Boolean_bitwise.ets"
529                                }
530                              }
531                            },
532                            "loc": {
533                              "start": {
534                                "line": 19,
535                                "column": 23,
536                                "program": "Boolean_bitwise.ets"
537                              },
538                              "end": {
539                                "line": 19,
540                                "column": 28,
541                                "program": "Boolean_bitwise.ets"
542                              }
543                            }
544                          },
545                          "loc": {
546                            "start": {
547                              "line": 19,
548                              "column": 7,
549                              "program": "Boolean_bitwise.ets"
550                            },
551                            "end": {
552                              "line": 19,
553                              "column": 28,
554                              "program": "Boolean_bitwise.ets"
555                            }
556                          }
557                        }
558                      ],
559                      "kind": "let",
560                      "loc": {
561                        "start": {
562                          "line": 19,
563                          "column": 3,
564                          "program": "Boolean_bitwise.ets"
565                        },
566                        "end": {
567                          "line": 19,
568                          "column": 29,
569                          "program": "Boolean_bitwise.ets"
570                        }
571                      }
572                    }
573                  ],
574                  "loc": {
575                    "start": {
576                      "line": 16,
577                      "column": 23,
578                      "program": "Boolean_bitwise.ets"
579                    },
580                    "end": {
581                      "line": 20,
582                      "column": 2,
583                      "program": "Boolean_bitwise.ets"
584                    }
585                  }
586                },
587                "loc": {
588                  "start": {
589                    "line": 16,
590                    "column": 10,
591                    "program": "Boolean_bitwise.ets"
592                  },
593                  "end": {
594                    "line": 20,
595                    "column": 2,
596                    "program": "Boolean_bitwise.ets"
597                  }
598                }
599              },
600              "loc": {
601                "start": {
602                  "line": 16,
603                  "column": 10,
604                  "program": "Boolean_bitwise.ets"
605                },
606                "end": {
607                  "line": 20,
608                  "column": 2,
609                  "program": "Boolean_bitwise.ets"
610                }
611              }
612            },
613            "overloads": [],
614            "decorators": [],
615            "loc": {
616              "start": {
617                "line": 16,
618                "column": 1,
619                "program": "Boolean_bitwise.ets"
620              },
621              "end": {
622                "line": 20,
623                "column": 2,
624                "program": "Boolean_bitwise.ets"
625              }
626            }
627          }
628        ],
629        "loc": {
630          "start": {
631            "line": 1,
632            "column": 1,
633            "program": "Boolean_bitwise.ets"
634          },
635          "end": {
636            "line": 1,
637            "column": 1,
638            "program": "Boolean_bitwise.ets"
639          }
640        }
641      },
642      "loc": {
643        "start": {
644          "line": 1,
645          "column": 1,
646          "program": "Boolean_bitwise.ets"
647        },
648        "end": {
649          "line": 1,
650          "column": 1,
651          "program": "Boolean_bitwise.ets"
652        }
653      }
654    }
655  ],
656  "loc": {
657    "start": {
658      "line": 1,
659      "column": 1,
660      "program": "Boolean_bitwise.ets"
661    },
662    "end": {
663      "line": 20,
664      "column": 2,
665      "program": "Boolean_bitwise.ets"
666    }
667  }
668}
669