(fn: Node, module: SourceModule)
| 7488 | |
| 7489 | // e.g. `export function f() {}`, which is set before the module's body runs |
| 7490 | export const isCallableBeforeBody = (fn: Node, module: SourceModule): boolean => |
| 7491 | fn.type === "FunctionDeclaration" && |
| 7492 | (fn.parent?.type === "ExportNamedDeclaration" || |
| 7493 | fn.parent?.type === "ExportDefaultDeclaration" || |
| 7494 | (fn.parent?.type === "Program" && |
| 7495 | !!bindingOfFunction(fn, module)?.exportNames.length)) && |
| 7496 | importsValues(module) |
| 7497 | |
| 7498 | export const bindingOfFunction = ( |
| 7499 | node: Node, |
no test coverage detected