MCPcopy Create free account
hub / github.com/DAddYE/igo / writeCommentPrefix

Method writeCommentPrefix

from_go/from_go.go:287–408  ·  view source on GitHub ↗

writeCommentPrefix writes the whitespace before a comment. If there is any pending whitespace, it consumes as much of it as is likely to help position the comment nicely. pos is the comment position, next the position of the item after all pending comments, prev is the previous comment in a group of

(pos, next token.Position, prev, comment *ast.Comment, tok token.Token)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

intersperseCommentsMethod · 0.95

Calls 4

writeByteMethod · 0.95
writeWhitespaceMethod · 0.95
nlimitFunction · 0.70
IsValidMethod · 0.45

Tested by

no test coverage detected