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