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

Function trimStructuralBlankLines

packages/tools/jsdocs/src/Jsdocs.ts:980–990  ·  view source on GitHub ↗
(lines: Array<string>)

Source from the content-addressed store, hash-verified

978}
979
980function trimStructuralBlankLines(lines: Array<string>): Array<string> {
981 let start = 0
982 let end = lines.length
983 if (lines[start]?.trim() === "") {
984 start++
985 }
986 if (end > start && lines[end - 1]?.trim() === "") {
987 end--
988 }
989 return lines.slice(start, end)
990}
991
992function parseTags(lines: Array<string>): Array<JSDocTag> {
993 const tags: Array<JSDocTag> = []

Callers 1

parseLooseJSDocBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected