(fd: ast.FunctionDeclaration)
| 199 | } |
| 200 | |
| 201 | const parseFunctionDeclaration = (fd: ast.FunctionDeclaration) => |
| 202 | Effect.gen(function*() { |
| 203 | const doc = parseDoc(getJSDocText(getFunctionDeclarationJSDocs(fd))) |
| 204 | if (shouldIgnore(doc)) { |
| 205 | return [] |
| 206 | } |
| 207 | const name = fd.getName() |
| 208 | const type = parseType(fd) |
| 209 | const signature = `declare const ${name}: ${type}` |
| 210 | const position = yield* parsePosition(fd) |
| 211 | return [ |
| 212 | new Domain.Function( |
| 213 | name ?? "", |
| 214 | doc, |
| 215 | signature, |
| 216 | position |
| 217 | ) |
| 218 | ] |
| 219 | }) |
| 220 | |
| 221 | const parseFunctionVariableDeclaration = (vd: ast.VariableDeclaration) => |
| 222 | Effect.gen(function*() { |
nothing calls this directly
no test coverage detected