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

Method setComment

from_go/nodes.go:67–92  ·  view source on GitHub ↗

setComment sets g as the next comment if g != nil and if node comments are enabled - this mode is used when printing source code fragments such as exports only. It assumes that there is no pending comment in p.comments and at most one pending comment in the p.comment cache.

(g *ast.CommentGroup)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

setLineCommentMethod · 0.95
fieldListMethod · 0.95
valueSpecMethod · 0.95
specMethod · 0.95
genDeclMethod · 0.95
funcDeclMethod · 0.95
fileMethod · 0.95

Calls 5

flushMethod · 0.95
posForMethod · 0.95
internalErrorMethod · 0.95
nextCommentMethod · 0.95
PosMethod · 0.65

Tested by

no test coverage detected