(vd: ast.VariableDeclaration)
| 219 | }) |
| 220 | |
| 221 | const parseFunctionVariableDeclaration = (vd: ast.VariableDeclaration) => |
| 222 | Effect.gen(function*() { |
| 223 | const vs: any = vd.getParent().getParent() |
| 224 | const doc = parseDoc(getJSDocText(vs.getJsDocs())) |
| 225 | if (shouldIgnore(doc)) { |
| 226 | return [] |
| 227 | } |
| 228 | const name = vd.getName() |
| 229 | const type = parseType(vd) |
| 230 | const signature = `declare const ${name}: ${type}` |
| 231 | const startPos = vd.getStart() |
| 232 | const source = yield* Source |
| 233 | const position = source.sourceFile.getLineAndColumnAtPos(startPos) |
| 234 | return [ |
| 235 | new Domain.Function( |
| 236 | name ?? "", |
| 237 | doc, |
| 238 | signature, |
| 239 | position |
| 240 | ) |
| 241 | ] |
| 242 | }) |
| 243 | |
| 244 | const getFunctionDeclarations = Effect.gen(function*() { |
| 245 | const source = yield* Source |
nothing calls this directly
no test coverage detected