MCPcopy Create free account
hub / github.com/coder/guts / LeadingComment

Method LeadingComment

bindings/comments.go:32–41  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

30}
31
32func (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
43func (s *SupportComments) AppendComments(comments []SyntheticComment) {
44 s.comments = append(s.comments, comments...)

Callers 2

buildStructMethod · 0.80
VisitMethod · 0.80

Calls 1

AppendCommentMethod · 0.95

Tested by

no test coverage detected