(vd: ast.VariableDeclaration)
| 327 | ) |
| 328 | |
| 329 | const parseConstantVariableDeclaration = (vd: ast.VariableDeclaration) => |
| 330 | Effect.gen(function*() { |
| 331 | const vs: any = vd.getParent().getParent() |
| 332 | const doc = parseDoc(getJSDocText(vs.getJsDocs())) |
| 333 | if (shouldIgnore(doc)) { |
| 334 | return [] |
| 335 | } |
| 336 | const name = vd.getName() |
| 337 | const type = parseType(vd) |
| 338 | const signature = `declare const ${name}: ${type}` |
| 339 | const position = yield* parsePosition(vd) |
| 340 | return [ |
| 341 | new Domain.Constant( |
| 342 | name, |
| 343 | doc, |
| 344 | signature, |
| 345 | position |
| 346 | ) |
| 347 | ] |
| 348 | }) |
| 349 | |
| 350 | /** |
| 351 | * Parses exported non-function constants from the current source file. |
nothing calls this directly
no test coverage detected