• 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": "func",
12            "typeAnnotation": {
13              "type": "TSTypeLiteral",
14              "members": [
15                {
16                  "type": "TSCallSignatureDeclaration",
17                  "params": [
18                    {
19                      "type": "Identifier",
20                      "name": "a",
21                      "typeAnnotation": {
22                        "type": "TSNumberKeyword",
23                        "loc": {
24                          "start": {
25                            "line": 17,
26                            "column": 17
27                          },
28                          "end": {
29                            "line": 17,
30                            "column": 23
31                          }
32                        }
33                      },
34                      "decorators": [],
35                      "loc": {
36                        "start": {
37                          "line": 17,
38                          "column": 14
39                        },
40                        "end": {
41                          "line": 17,
42                          "column": 15
43                        }
44                      }
45                    },
46                    {
47                      "type": "Identifier",
48                      "name": "b",
49                      "typeAnnotation": {
50                        "type": "TSStringKeyword",
51                        "loc": {
52                          "start": {
53                            "line": 17,
54                            "column": 28
55                          },
56                          "end": {
57                            "line": 17,
58                            "column": 34
59                          }
60                        }
61                      },
62                      "decorators": [],
63                      "loc": {
64                        "start": {
65                          "line": 17,
66                          "column": 25
67                        },
68                        "end": {
69                          "line": 17,
70                          "column": 26
71                        }
72                      }
73                    }
74                  ],
75                  "returnType": {
76                    "type": "TSNumberKeyword",
77                    "loc": {
78                      "start": {
79                        "line": 17,
80                        "column": 37
81                      },
82                      "end": {
83                        "line": 17,
84                        "column": 43
85                      }
86                    }
87                  },
88                  "loc": {
89                    "start": {
90                      "line": 17,
91                      "column": 13
92                    },
93                    "end": {
94                      "line": 17,
95                      "column": 44
96                    }
97                  }
98                },
99                {
100                  "type": "TSCallSignatureDeclaration",
101                  "params": [
102                    {
103                      "type": "Identifier",
104                      "name": "a",
105                      "typeAnnotation": {
106                        "type": "TSStringKeyword",
107                        "loc": {
108                          "start": {
109                            "line": 17,
110                            "column": 49
111                          },
112                          "end": {
113                            "line": 17,
114                            "column": 55
115                          }
116                        }
117                      },
118                      "decorators": [],
119                      "loc": {
120                        "start": {
121                          "line": 17,
122                          "column": 46
123                        },
124                        "end": {
125                          "line": 17,
126                          "column": 47
127                        }
128                      }
129                    },
130                    {
131                      "type": "Identifier",
132                      "name": "b",
133                      "typeAnnotation": {
134                        "type": "TSNumberKeyword",
135                        "loc": {
136                          "start": {
137                            "line": 17,
138                            "column": 61
139                          },
140                          "end": {
141                            "line": 17,
142                            "column": 67
143                          }
144                        }
145                      },
146                      "optional": true,
147                      "decorators": [],
148                      "loc": {
149                        "start": {
150                          "line": 17,
151                          "column": 57
152                        },
153                        "end": {
154                          "line": 17,
155                          "column": 58
156                        }
157                      }
158                    }
159                  ],
160                  "returnType": {
161                    "type": "TSStringKeyword",
162                    "loc": {
163                      "start": {
164                        "line": 17,
165                        "column": 70
166                      },
167                      "end": {
168                        "line": 17,
169                        "column": 76
170                      }
171                    }
172                  },
173                  "loc": {
174                    "start": {
175                      "line": 17,
176                      "column": 45
177                    },
178                    "end": {
179                      "line": 17,
180                      "column": 78
181                    }
182                  }
183                }
184              ],
185              "loc": {
186                "start": {
187                  "line": 17,
188                  "column": 11
189                },
190                "end": {
191                  "line": 17,
192                  "column": 78
193                }
194              }
195            },
196            "decorators": [],
197            "loc": {
198              "start": {
199                "line": 17,
200                "column": 5
201              },
202              "end": {
203                "line": 17,
204                "column": 9
205              }
206            }
207          },
208          "init": null,
209          "loc": {
210            "start": {
211              "line": 17,
212              "column": 5
213            },
214            "end": {
215              "line": 17,
216              "column": 9
217            }
218          }
219        }
220      ],
221      "kind": "var",
222      "loc": {
223        "start": {
224          "line": 17,
225          "column": 1
226        },
227        "end": {
228          "line": 17,
229          "column": 79
230        }
231      }
232    },
233    {
234      "type": "ExpressionStatement",
235      "expression": {
236        "type": "CallExpression",
237        "callee": {
238          "type": "Identifier",
239          "name": "func",
240          "decorators": [],
241          "loc": {
242            "start": {
243              "line": 18,
244              "column": 1
245            },
246            "end": {
247              "line": 18,
248              "column": 5
249            }
250          }
251        },
252        "arguments": [],
253        "optional": false,
254        "loc": {
255          "start": {
256            "line": 18,
257            "column": 1
258          },
259          "end": {
260            "line": 18,
261            "column": 7
262          }
263        }
264      },
265      "loc": {
266        "start": {
267          "line": 18,
268          "column": 1
269        },
270        "end": {
271          "line": 18,
272          "column": 8
273        }
274      }
275    }
276  ],
277  "loc": {
278    "start": {
279      "line": 1,
280      "column": 1
281    },
282    "end": {
283      "line": 18,
284      "column": 8
285    }
286  }
287}
288TypeError: Expected 1-2 arguments, but got 0 [functionCall_10.ts:18:1]
289