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

Method PreserveComments

convert.go:87–90  ·  view source on GitHub ↗

PreserveComments will attempt to preserve any comments associated with the golang types. This feature is still a work in progress, and may not preserve all comments or match all expectations.

()

Source from the content-addressed store, hash-verified

85// the golang types. This feature is still a work in progress, and may not
86// preserve all comments or match all expectations.
87func (p *GoParser) PreserveComments() *GoParser {
88 p.preserveComments = true
89 return p
90}
91
92// IncludeCustomDeclaration is an advanced form of IncludeCustom.
93func (p *GoParser) IncludeCustomDeclaration(mappings map[string]TypeOverride) {

Callers 2

TestGenerationFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestGenerationFunction · 0.64