(ed: ast.ExportDeclaration)
| 396 | }) |
| 397 | |
| 398 | const parseExportStar = (ed: ast.ExportDeclaration) => |
| 399 | Effect.gen(function*() { |
| 400 | const es = ed.getModuleSpecifier()! |
| 401 | const name = es.getText() |
| 402 | const namespace = ed.getNamespaceExport()?.getName() |
| 403 | const signature = `export *${namespace === undefined ? "" : ` as ${namespace}`} from ${name}` |
| 404 | const oDocComment = getDocComment(ed.getLeadingCommentRanges()) |
| 405 | const doc = Option.isSome(oDocComment) ? parseDoc(oDocComment.value.getText()) : parseDoc("") |
| 406 | const position = yield* parsePosition(ed) |
| 407 | return new Domain.Export( |
| 408 | namespace ?? name, |
| 409 | doc.modifyDescription( |
| 410 | `Re-exports all named exports from the ${name} module${namespace === undefined ? "" : ` as \`${namespace}\``}.` |
| 411 | ), |
| 412 | signature, |
| 413 | position, |
| 414 | true |
| 415 | ) |
| 416 | }) |
| 417 | |
| 418 | const parseNamedExports = (ed: ast.ExportDeclaration) => { |
| 419 | const namedExports = ed.getNamedExports() |
no test coverage detected