MCPcopy Create free account
hub / github.com/anomalyco/opencode / cloneComment

Function cloneComment

packages/app/src/context/comments.tsx:62–67  ·  view source on GitHub ↗
(comment: LineComment)

Source from the content-addressed store, hash-verified

60}
61
62function cloneComment(comment: LineComment): LineComment {
63 return {
64 ...comment,
65 selection: cloneSelection(comment.selection),
66 }
67}
68
69function group(comments: LineComment[]) {
70 return comments.reduce<Record<string, LineComment[]>>((acc, comment) => {

Callers 1

groupFunction · 0.85

Calls 1

cloneSelectionFunction · 0.70

Tested by

no test coverage detected