dev
This commit is contained in:
@@ -13,7 +13,7 @@ type commentGenerator struct {
|
||||
descriptor protoreflect.Descriptor
|
||||
}
|
||||
|
||||
func (c commentGenerator) generateLeading(f *codegen.File, indent int) {
|
||||
func (c commentGenerator) generateLeading(f *codegen.File, indent int) string {
|
||||
loc := c.descriptor.ParentFile().SourceLocations().ByDescriptor(c.descriptor)
|
||||
var comments string
|
||||
if loc.TrailingComments != "" {
|
||||
@@ -34,6 +34,8 @@ func (c commentGenerator) generateLeading(f *codegen.File, indent int) {
|
||||
f.P(t(indent), "/** "+behaviorComment+" */")
|
||||
}
|
||||
}
|
||||
|
||||
return strings.TrimSpace(comments)
|
||||
}
|
||||
|
||||
func fieldBehaviorComment(field protoreflect.FieldDescriptor) string {
|
||||
|
||||
Reference in New Issue
Block a user