MCPcopy Create free account
hub / github.com/Effect-TS/effect / parseExportSpecifier

Function parseExportSpecifier

packages/tools/docgen/src/Parser.ts:381–396  ·  view source on GitHub ↗
(es: ast.ExportSpecifier)

Source from the content-addressed store, hash-verified

379})
380
381const parseExportSpecifier = (es: ast.ExportSpecifier) =>
382 Effect.gen(function*() {
383 const name = es.compilerNode.name.text
384 const type = parseType(es)
385 const oDocComment = getDocComment(es.getLeadingCommentRanges())
386 const doc = Option.isSome(oDocComment) ? parseDoc(oDocComment.value.getText()) : parseDoc("")
387 const signature = `declare const ${name}: ${type}`
388 const position = yield* parsePosition(es)
389 return new Domain.Export(
390 name,
391 doc,
392 signature,
393 position,
394 false
395 )
396 })
397
398const parseExportStar = (ed: ast.ExportDeclaration) =>
399 Effect.gen(function*() {

Callers

nothing calls this directly

Calls 4

parseTypeFunction · 0.85
getDocCommentFunction · 0.85
parseDocFunction · 0.85
parsePositionFunction · 0.85

Tested by

no test coverage detected