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

Function getDocComment

packages/tools/docgen/src/Parser.ts:41–46  ·  view source on GitHub ↗
(ranges: ReadonlyArray<ast.CommentRange>)

Source from the content-addressed store, hash-verified

39})
40
41const getDocComment = (ranges: ReadonlyArray<ast.CommentRange>): Option.Option<ast.CommentRange> =>
42 pipe(
43 ranges,
44 Array.filter((range) => range.getText().startsWith("/**")),
45 Array.last
46 )
47
48class Comment {
49 readonly description: string | undefined

Callers 3

parseExportSpecifierFunction · 0.85
parseExportStarFunction · 0.85
Parser.tsFile · 0.85

Calls 2

filterMethod · 0.80
pipeFunction · 0.50

Tested by

no test coverage detected