30 writes to Summary
Aspire.Hosting.CodeGeneration.Go (10)
AtsGoCodeGenerator.cs (10)
977Summary = capability.Documentation?.Summary, 1022Summary = enumType.Documentation?.Summary, 1039Summary = memberDocumentation?.Summary, 1079Summary = dto.Documentation?.Summary ?? dto.Description, 1106Summary = property.Documentation?.Summary ?? property.Description, 1185Summary = valueInfo.Documentation?.Summary ?? valueInfo.Description, 1388Summary = documentation?.Summary, 1540Summary = documentation?.Summary, 1628return _docs.Render(new GoDocContent { GoName = goName, Summary = summary }); 2387Summary = capability.CapabilityKind == AtsCapabilityKind.PropertySetter ? null : p.Documentation?.Summary,
Aspire.Hosting.CodeGeneration.Go.Tests (20)
GoDocCommentTests.cs (20)
54("method summary is reworded to start with the name", new GoDocContent { GoName = "AddRedis", Summary = "Adds a Redis container resource." }), 55("summary that already starts with the name is kept", new GoDocContent { GoName = "AddRedis", Summary = "AddRedis adds a Redis container resource." }), 56("getter", new GoDocContent { GoName = "DisplayName", Subject = GoDocSubject.Getter, Summary = "Gets or sets the display name." }), 57("setter", new GoDocContent { GoName = "SetDisplayName", Subject = GoDocSubject.Setter, Summary = "Gets or sets the display name." }), 58("boolean getter", new GoDocContent { GoName = "IsEnabled", Subject = GoDocSubject.Getter, Summary = "Gets or sets a value indicating whether the resource is enabled." }), 59("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" }), 60("field with a noun phrase", new GoDocContent { GoName = "Port", Subject = GoDocSubject.Field, Summary = "The port to listen on." }), 61("field with a sentence", new GoDocContent { GoName = "Pending", Subject = GoDocSubject.Field, Summary = "The resource is pending." }), 62("field with whether", new GoDocContent { GoName = "UseTls", Subject = GoDocSubject.Field, Summary = "Whether TLS is used." }), 63("type without a verb", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, Summary = "Test settings." }), 69Summary = "Adds documentation.", 75("experimental", new GoDocContent { GoName = "WithPreview", Summary = "Adds a preview.", IsExperimental = true }), 76("obsolete with a message", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsObsolete = true, ObsoleteMessage = "Use WithPreview instead.\nIt replaces this method." }), 77("obsolete without a message", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsObsolete = true }), 78("experimental and obsolete", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsExperimental = true, IsObsolete = true, ObsoleteMessage = "Use WithPreview." }), 82Summary = "Adds a resource whose documentation is long enough that it has to wrap across several comment lines - the next dash must not start a list item - or a heading # either.", 85("a remark that looks like a heading stays a paragraph", new GoDocContent { GoName = "WithHeading", Summary = "Adds a heading.", Remarks = "Overview\n- first item" }), 86("special characters are kept", new GoDocContent { GoName = "WithSpecialCharacters", Summary = "Adds <special> characters & \"quotes\", a backslash \\ and a */ terminator. Unicode: 你好こんにちは." }), 105Summary = text, 129Summary = "Adds a thing.",
3 references to Summary
Aspire.Hosting.CodeGeneration.Go (3)
GoDocComment.cs (3)
42/// Used when <see cref="Summary"/> is empty, and as the leading sentence of a setter whose property 43/// documentation cannot be reworded. It receives the same treatment as <see cref="Summary"/>, so a plain 208var blocks = ToBlocks(content.Summary, parameterNames);