• 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": "foo",
12            "typeAnnotation": {
13              "type": "TSTypeLiteral",
14              "members": [
15                {
16                  "type": "TSConstructSignatureDeclaration",
17                  "params": [
18                    {
19                      "type": "Identifier",
20                      "name": "a",
21                      "typeAnnotation": {
22                        "type": "TSAnyKeyword",
23                        "loc": {
24                          "start": {
25                            "line": 17,
26                            "column": 19
27                          },
28                          "end": {
29                            "line": 17,
30                            "column": 22
31                          }
32                        }
33                      },
34                      "decorators": [],
35                      "loc": {
36                        "start": {
37                          "line": 17,
38                          "column": 16
39                        },
40                        "end": {
41                          "line": 17,
42                          "column": 17
43                        }
44                      }
45                    },
46                    {
47                      "type": "Identifier",
48                      "name": "b",
49                      "typeAnnotation": {
50                        "type": "TSAnyKeyword",
51                        "loc": {
52                          "start": {
53                            "line": 17,
54                            "column": 27
55                          },
56                          "end": {
57                            "line": 17,
58                            "column": 30
59                          }
60                        }
61                      },
62                      "decorators": [],
63                      "loc": {
64                        "start": {
65                          "line": 17,
66                          "column": 24
67                        },
68                        "end": {
69                          "line": 17,
70                          "column": 25
71                        }
72                      }
73                    }
74                  ],
75                  "returnType": {
76                    "type": "TSAnyKeyword",
77                    "loc": {
78                      "start": {
79                        "line": 17,
80                        "column": 33
81                      },
82                      "end": {
83                        "line": 17,
84                        "column": 36
85                      }
86                    }
87                  },
88                  "loc": {
89                    "start": {
90                      "line": 17,
91                      "column": 12
92                    },
93                    "end": {
94                      "line": 17,
95                      "column": 38
96                    }
97                  }
98                }
99              ],
100              "loc": {
101                "start": {
102                  "line": 17,
103                  "column": 10
104                },
105                "end": {
106                  "line": 17,
107                  "column": 39
108                }
109              }
110            },
111            "decorators": [],
112            "loc": {
113              "start": {
114                "line": 17,
115                "column": 5
116              },
117              "end": {
118                "line": 17,
119                "column": 8
120              }
121            }
122          },
123          "init": null,
124          "loc": {
125            "start": {
126              "line": 17,
127              "column": 5
128            },
129            "end": {
130              "line": 17,
131              "column": 8
132            }
133          }
134        }
135      ],
136      "kind": "var",
137      "loc": {
138        "start": {
139          "line": 17,
140          "column": 1
141        },
142        "end": {
143          "line": 17,
144          "column": 40
145        }
146      }
147    },
148    {
149      "type": "VariableDeclaration",
150      "declarations": [
151        {
152          "type": "VariableDeclarator",
153          "id": {
154            "type": "Identifier",
155            "name": "a",
156            "decorators": [],
157            "loc": {
158              "start": {
159                "line": 18,
160                "column": 5
161              },
162              "end": {
163                "line": 18,
164                "column": 6
165              }
166            }
167          },
168          "init": {
169            "type": "NewExpression",
170            "callee": {
171              "type": "Identifier",
172              "name": "foo",
173              "decorators": [],
174              "loc": {
175                "start": {
176                  "line": 18,
177                  "column": 13
178                },
179                "end": {
180                  "line": 18,
181                  "column": 16
182                }
183              }
184            },
185            "arguments": [],
186            "loc": {
187              "start": {
188                "line": 18,
189                "column": 9
190              },
191              "end": {
192                "line": 18,
193                "column": 18
194              }
195            }
196          },
197          "loc": {
198            "start": {
199              "line": 18,
200              "column": 5
201            },
202            "end": {
203              "line": 18,
204              "column": 18
205            }
206          }
207        }
208      ],
209      "kind": "var",
210      "loc": {
211        "start": {
212          "line": 18,
213          "column": 1
214        },
215        "end": {
216          "line": 18,
217          "column": 19
218        }
219      }
220    }
221  ],
222  "loc": {
223    "start": {
224      "line": 1,
225      "column": 1
226    },
227    "end": {
228      "line": 19,
229      "column": 1
230    }
231  }
232}
233TypeError: Expected 2 arguments, but got 0. [new_expression_91.ts:18:9]
234