(line string, atEnd bool)
| 33 | } |
| 34 | |
| 35 | func addSourceLine(line string, atEnd bool) string { |
| 36 | if line == "" { |
| 37 | return "\n\n" |
| 38 | } |
| 39 | |
| 40 | if !strings.HasPrefix(line, "\n") && !atEnd { |
| 41 | line = strings.TrimLeft(line, " ") |
| 42 | line = fmt.Sprintf("\n%s", line) |
| 43 | } else if !strings.HasSuffix(line, "\n") && atEnd { |
| 44 | line = strings.TrimLeft(line, " ") |
| 45 | line = fmt.Sprintf("%s\n", line) |
| 46 | } |
| 47 | |
| 48 | return line |
| 49 | } |
| 50 | |
| 51 | func coalesce(comments []Comment) []Comment { |
| 52 | var joined []Comment |
no outgoing calls
no test coverage detected
searching dependent graphs…