* The tables the function written at `at` returns: its expression body's * (`(user) => [ … ]`, `() => buildRoutes()`), or what each `return` of its * own hands back, an early guard (`if (!user) return [];`) and every branch * alike. A `return` in a function written inside it (`.map((p) => { retur
(safe: string, at: number)
| 2229 | * [ … ]; })`, a method's) is that function's. |
| 2230 | */ |
| 2231 | function returnedTables(safe: string, at: number): TableSite[] { |
| 2232 | const body = functionBody(safe, at); |
| 2233 | if (!body) return []; |
| 2234 | if (!body.block) return heldTable(safe, body.start); |
| 2235 | return ownReturns(safe, body.start, body.end).flatMap((value) => heldTable(safe, value)); |
| 2236 | } |
| 2237 | |
| 2238 | /** |
| 2239 | * Where the function written at `at` keeps its body: a block, from its `{` to |
no test coverage detected