({ id, init }: VariableDeclarator)
| 2018 | } |
| 2019 | |
| 2020 | const declaresFunction = ({ id, init }: VariableDeclarator): boolean => |
| 2021 | id.type === "Identifier" && !!init && isPlainFunction(init) |
| 2022 | |
| 2023 | // a function expression that neither names itself nor is async or a generator |
| 2024 | const isPlainFunction = ( |
no test coverage detected