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