19 writes to Subject
Aspire.Hosting.CodeGeneration.Go (9)
AtsGoCodeGenerator.cs (9)
699Subject = capability.CapabilityKind switch 749Subject = GoDocSubject.Type, 766Subject = GoDocSubject.Field, 806Subject = GoDocSubject.Type, 833Subject = GoDocSubject.Field, 912Subject = GoDocSubject.Field, 1115Subject = GoDocSubject.Type, 1267Subject = GoDocSubject.Type, 2146Subject = GoDocSubject.Field,
Aspire.Hosting.CodeGeneration.Go.Tests (10)
GoDocCommentTests.cs (10)
55("getter", new GoDocContent { GoName = "DisplayName", Subject = GoDocSubject.Getter, Summary = "Gets or sets the display name." }), 56("setter", new GoDocContent { GoName = "SetDisplayName", Subject = GoDocSubject.Setter, Summary = "Gets or sets the display name." }), 57("boolean getter", new GoDocContent { GoName = "IsEnabled", Subject = GoDocSubject.Getter, Summary = "Gets or sets a value indicating whether the resource is enabled." }), 58("setter falls back to the description when the property text cannot be reworded", new GoDocContent { GoName = "SetPort", Subject = GoDocSubject.Setter, Summary = "The port.", FallbackSummary = "Sets the Port property" }), 59("field with a noun phrase", new GoDocContent { GoName = "Port", Subject = GoDocSubject.Field, Summary = "The port to listen on." }), 60("field with a sentence", new GoDocContent { GoName = "Pending", Subject = GoDocSubject.Field, Summary = "The resource is pending." }), 61("field with whether", new GoDocContent { GoName = "UseTls", Subject = GoDocSubject.Field, Summary = "Whether TLS is used." }), 62("type without a verb", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, Summary = "Test settings." }), 63("fallback summary", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, FallbackSummary = "Settings represents Settings." }), 64("nothing to document", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type }),
3 references to Subject
Aspire.Hosting.CodeGeneration.Go (3)
GoDocComment.cs (3)
214content.Subject == GoDocSubject.Setter && 216!TryRewritePropertySummary(content.GoName, property.Text, content.Subject, out _)) 227blocks[0] = new ParagraphBlock(StartWithName(content.GoName, paragraph.Text, content.Subject));