MCPcopy Index your code
hub / github.com/Effect-TS/effect / annotateLine

Function annotateLine

packages/cli/src/internal/prompt/date.ts:58–59  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

56 const errorLines = error.split(NEWLINE_REGEX)
57 if (Arr.isNonEmptyReadonlyArray(errorLines)) {
58 const annotateLine = (line: string): Doc.AnsiDoc =>
59 Doc.annotate(Doc.text(line), Ansi.combine(Ansi.italicized, Ansi.red))
60 const prefix = Doc.cat(Doc.annotate(pointer, Ansi.red), Doc.space)
61 const lines = Arr.map(errorLines, (str) => annotateLine(str))
62 return Doc.cursorSavePosition.pipe(

Callers 2

renderErrorFunction · 0.70
renderOutputFunction · 0.70

Calls 3

annotateMethod · 0.65
combineMethod · 0.65
textMethod · 0.45

Tested by

no test coverage detected