doneMerging determines when we should *stop* concatenating line-scoped comments.
(curr, prev Comment)
| 22 | // doneMerging determines when we should *stop* concatenating line-scoped |
| 23 | // comments. |
| 24 | func doneMerging(curr, prev Comment) bool { |
| 25 | if prev.Line != curr.Line-1 { |
| 26 | // If the comments aren't on consecutive lines, don't merge them. |
| 27 | return true |
| 28 | } else if prev.Offset != curr.Offset { |
| 29 | // If the comments aren't at the same offset, don't merge them. |
| 30 | return true |
| 31 | } |
| 32 | return false |
| 33 | } |
| 34 | |
| 35 | func addSourceLine(line string, atEnd bool) string { |
| 36 | if line == "" { |
no outgoing calls
no test coverage detected
searching dependent graphs…