• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "ExportNamedDeclaration",
6      "declaration": {
7        "type": "TSDeclareFunction",
8        "function": {
9          "type": "ScriptFunction",
10          "id": {
11            "type": "Identifier",
12            "name": "isPrime",
13            "loc": {
14              "start": {
15                "line": 17,
16                "column": 17
17              },
18              "end": {
19                "line": 17,
20                "column": 24
21              }
22            }
23          },
24          "generator": false,
25          "async": false,
26          "expression": false,
27          "params": [
28            {
29              "type": "Identifier",
30              "name": "x",
31              "typeAnnotation": {
32                "type": "TSNumberKeyword",
33                "loc": {
34                  "start": {
35                    "line": 17,
36                    "column": 28
37                  },
38                  "end": {
39                    "line": 17,
40                    "column": 34
41                  }
42                }
43              },
44              "loc": {
45                "start": {
46                  "line": 17,
47                  "column": 25
48                },
49                "end": {
50                  "line": 17,
51                  "column": 26
52                }
53              }
54            }
55          ],
56          "returnType": {
57            "type": "TSBooleanKeyword",
58            "loc": {
59              "start": {
60                "line": 17,
61                "column": 37
62              },
63              "end": {
64                "line": 17,
65                "column": 44
66              }
67            }
68          },
69          "loc": {
70            "start": {
71              "line": 17,
72              "column": 8
73            },
74            "end": {
75              "line": 17,
76              "column": 45
77            }
78          }
79        },
80        "loc": {
81          "start": {
82            "line": 17,
83            "column": 8
84          },
85          "end": {
86            "line": 17,
87            "column": 45
88          }
89        }
90      },
91      "source": null,
92      "specifiers": [],
93      "loc": {
94        "start": {
95          "line": 17,
96          "column": 1
97        },
98        "end": {
99          "line": 17,
100          "column": 45
101        }
102      }
103    },
104    {
105      "type": "TSNamespaceExportDeclaration",
106      "id": {
107        "type": "Identifier",
108        "name": "mathLib",
109        "loc": {
110          "start": {
111            "line": 18,
112            "column": 21
113          },
114          "end": {
115            "line": 18,
116            "column": 28
117          }
118        }
119      },
120      "loc": {
121        "start": {
122          "line": 18,
123          "column": 1
124        },
125        "end": {
126          "line": 18,
127          "column": 29
128        }
129      }
130    }
131  ],
132  "loc": {
133    "start": {
134      "line": 1,
135      "column": 1
136    },
137    "end": {
138      "line": 18,
139      "column": 29
140    }
141  }
142}
143