(text string)
| 30 | } |
| 31 | |
| 32 | func (s *SupportComments) LeadingComment(text string) { |
| 33 | s.AppendComment(SyntheticComment{ |
| 34 | Leading: true, |
| 35 | SingleLine: true, |
| 36 | // All go comments are `// ` prefixed, so add a space. |
| 37 | Text: " " + text, |
| 38 | TrailingNewLine: false, |
| 39 | DoNotFormat: true, |
| 40 | }) |
| 41 | } |
| 42 | |
| 43 | func (s *SupportComments) AppendComments(comments []SyntheticComment) { |
| 44 | s.comments = append(s.comments, comments...) |
no test coverage detected